summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-06-30 23:26:39 +0000
committerRoger Dingledine <arma@torproject.org>2008-06-30 23:26:39 +0000
commita9e8784c2fce703aab8cd34577b65cb356e65ce7 (patch)
tree24d9ad82c009cab20f23b45b100e7bbc4f8cff02
parentcb8386bc08925db1d732faf6f762e6ea9ed90e3d (diff)
downloadtor-a9e8784c2fce703aab8cd34577b65cb356e65ce7.tar.gz
tor-a9e8784c2fce703aab8cd34577b65cb356e65ce7.zip
preventive maintenance so we don't get more of those "failing
to find the right circuit" bugs. svn:r15576
-rw-r--r--src/or/circuituse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index d8ac174309..96a7e21ef8 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -852,7 +852,7 @@ circuit_launch_by_extend_info(uint8_t purpose,
int flags)
{
origin_circuit_t *circ;
- int onehop_tunnel = flags & CIRCLAUNCH_ONEHOP_TUNNEL;
+ int onehop_tunnel = (flags & CIRCLAUNCH_ONEHOP_TUNNEL) != 0;
if (!onehop_tunnel && !router_have_minimum_dir_info()) {
log_debug(LD_CIRC,"Haven't fetched enough directory info yet; canceling "