From 148a1e969d4c700409f0765d8b937b29b09881fb Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 3 Dec 2005 02:12:37 +0000 Subject: Shave off another 4.7%: remove a linear search when figuring out which circuits wanted us to open a given OR connection. svn:r5489 --- src/or/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/command.c') diff --git a/src/or/command.c b/src/or/command.c index d2fe460bd0..73c3137cbb 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); -- cgit v1.2.3-54-g00ecf