diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-12-03 02:12:37 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-12-03 02:12:37 +0000 |
commit | 148a1e969d4c700409f0765d8b937b29b09881fb (patch) | |
tree | 52c124da78607a0b3940bcfe0db5903283f32a5a /src/or/command.c | |
parent | 502cb5961102e46853c18a0f93c3a279d31a2213 (diff) | |
download | tor-148a1e969d4c700409f0765d8b937b29b09881fb.tar.gz tor-148a1e969d4c700409f0765d8b937b29b09881fb.zip |
Shave off another 4.7%: remove a linear search when figuring out which circuits wanted us to open a given OR connection.
svn:r5489
Diffstat (limited to 'src/or/command.c')
-rw-r--r-- | src/or/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |