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/control.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/control.c')
-rw-r--r-- | src/or/control.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c index 88451cda39..94a4ca14b5 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -1594,7 +1594,7 @@ handle_control_extendcircuit(connection_t *conn, uint32_t len, } } else { if (circ->state == CIRCUIT_STATE_OPEN) { - circ->state = CIRCUIT_STATE_BUILDING; + circuit_set_state(circ, CIRCUIT_STATE_BUILDING); if (circuit_send_next_onion_skin(circ) < 0) { info(LD_CONTROL,"send_next_onion_skin failed; circuit marked for closing."); circuit_mark_for_close(circ); |