[or-cvs] if your requested exit node has bandwidth 0, pick it anyway

Roger Dingledine arma at seul.org
Sat Nov 20 12:41:07 UTC 2004


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

Modified Files:
	routerlist.c 
Log Message:
if your requested exit node has bandwidth 0, pick it anyway


Index: routerlist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.187
retrieving revision 1.188
diff -u -d -r1.187 -r1.188
--- routerlist.c	15 Nov 2004 09:22:01 -0000	1.187
+++ routerlist.c	20 Nov 2004 12:41:05 -0000	1.188
@@ -436,7 +436,7 @@
 //    log_fn(LOG_INFO,"Recording bw %d for node %s.", this_bw, router->nickname);
   }
   if(!total_bw)
-    return NULL;
+    return smartlist_choose(sl);
   rand_bw = crypto_pseudo_rand_int(total_bw);
 //  log_fn(LOG_INFO,"Total bw %d. Randomly chose %d.", total_bw, rand_bw);
   tmp = 0;



More information about the tor-commits mailing list