diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-20 12:41:05 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-20 12:41:05 +0000 |
commit | 63353462f8402ee0f55ad1b9d7225cc22b817d51 (patch) | |
tree | dfe2882e34bcf31b74c33b39ba045467716e5980 /src | |
parent | d4ac7300d6d0a3db444fb4a6683a03f91e8dbeac (diff) | |
download | tor-63353462f8402ee0f55ad1b9d7225cc22b817d51.tar tor-63353462f8402ee0f55ad1b9d7225cc22b817d51.tar.gz |
if your requested exit node has bandwidth 0, pick it anyway
svn:r2920
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routerlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index bb29e3917..10df528f4 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -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; |