]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
if your requested exit node has bandwidth 0, pick it anyway
authorRoger Dingledine <arma@torproject.org>
Sat, 20 Nov 2004 12:41:05 +0000 (12:41 +0000)
committerRoger Dingledine <arma@torproject.org>
Sat, 20 Nov 2004 12:41:05 +0000 (12:41 +0000)
svn:r2920

src/or/routerlist.c

index bb29e3917a369b042da685e0813f5e7b1de7ab80..10df528f4aa94b9acb07f260d150197551f3fca4 100644 (file)
@@ -436,7 +436,7 @@ routerlist_sl_choose_by_bandwidth(smartlist_t *sl)
 //    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;