aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-02-17 06:39:20 +0000
committerRoger Dingledine <arma@torproject.org>2004-02-17 06:39:20 +0000
commit1801bd75925ff96e0a0c492f9b03f48ca2ccae6a (patch)
tree15556e41fcab6b14f4f2a3044c2bb5130ff92925 /src/or/router.c
parent51ca94fef3d4f1bb5655c28332a116d7b0c90cd0 (diff)
downloadtor-1801bd75925ff96e0a0c492f9b03f48ca2ccae6a.tar.gz
tor-1801bd75925ff96e0a0c492f9b03f48ca2ccae6a.zip
prevent picking middleman nodes as the last node in the circuit
svn:r1088
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 9297e2bb90..032039873f 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -455,7 +455,7 @@ int router_dump_router_to_string(char *s, int maxlen, routerinfo_t *router,
return -1;
written += result;
}
- if (tmpe->prt_min == 1 && tmpe->prt_max == 65535) {
+ if (tmpe->prt_min == 0 && tmpe->prt_max == 65535) {
if (written > maxlen-4)
return -1;
strcat(s+written, ":*\n");