[or-cvs] prevent picking middleman nodes as the last node in the cir...

Roger Dingledine arma at seul.org
Tue Feb 17 06:39:22 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	router.c routerlist.c 
Log Message:
prevent picking middleman nodes as the last node in the circuit


Index: router.c
===================================================================
RCS file: /home/or/cvsroot/src/or/router.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- router.c	10 Jan 2004 23:40:38 -0000	1.7
+++ router.c	17 Feb 2004 06:39:20 -0000	1.8
@@ -455,7 +455,7 @@
         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");

Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routerlist.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- routerlist.c	30 Jan 2004 21:16:51 -0000	1.20
+++ routerlist.c	17 Feb 2004 06:39:20 -0000	1.21
@@ -955,7 +955,7 @@
     }
   }
   if (!port || strcmp(port, "*") == 0) {
-    newe->prt_min = 1;
+    newe->prt_min = 0;
     newe->prt_max = 65535;
   } else {
     endptr = NULL;



More information about the tor-commits mailing list