summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-11-11 19:28:32 +0000
committerRoger Dingledine <arma@torproject.org>2005-11-11 19:28:32 +0000
commita3c53e0af94a49a01b1dd5e3abcb015d8b6af3e6 (patch)
treed78851f5c19515b1d4d3a2eff63e346bb6a633c1
parent862a99749561428be6fa6e8472aac43e9824e32f (diff)
downloadtor-a3c53e0af94a49a01b1dd5e3abcb015d8b6af3e6.tar.gz
tor-a3c53e0af94a49a01b1dd5e3abcb015d8b6af3e6.zip
speed up the lookup-by-circid-orconn now that it seems that
our code works. svn:r5358
-rw-r--r--src/or/circuitlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index 0f460736ad..febf4d7e9e 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -366,9 +366,9 @@ circuit_get_by_circid_orconn_impl(uint16_t circ_id, connection_t *conn)
if (found && found->circuit)
return found->circuit;
- /* The rest of this can be replaced with
- "return NULL;" once we believe the code works. */
+ return NULL;
+ /* The rest of this checks for bugs. Disabled by default. */
{
circuit_t *circ;
for (circ=global_circuitlist;circ;circ = circ->next) {
@@ -590,7 +590,7 @@ circuit_find_to_cannibalize(uint8_t purpose, extend_info_t *info,
}
if (!best || (best->build_state->need_uptime && !need_uptime))
best = circ;
- next:
+ next: ;
}
}
return best;