[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] if your requested exit node has bandwidth 0, pick it anyway
- To: or-cvs@freehaven.net
- Subject: [or-cvs] if your requested exit node has bandwidth 0, pick it anyway
- From: arma@seul.org (Roger Dingledine)
- Date: Sat, 20 Nov 2004 07:41:07 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sat, 20 Nov 2004 07:41:27 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
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;