aboutsummaryrefslogtreecommitdiff
path: root/src/or/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/command.c')
-rw-r--r--src/or/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/command.c b/src/or/command.c
index d2fe460bd..73c3137cb 100644
--- a/src/or/command.c
+++ b/src/or/command.c
@@ -198,7 +198,7 @@ command_process_create_cell(cell_t *cell, connection_t *conn)
circ = circuit_new(cell->circ_id, conn);
circ->purpose = CIRCUIT_PURPOSE_OR;
- circ->state = CIRCUIT_STATE_ONIONSKIN_PENDING;
+ circuit_set_state(circ, CIRCUIT_STATE_ONIONSKIN_PENDING);
if (cell->command == CELL_CREATE) {
circ->onionskin = tor_malloc(ONIONSKIN_CHALLENGE_LEN);
memcpy(circ->onionskin, cell->payload, ONIONSKIN_CHALLENGE_LEN);