Browse Source

bugfix: make intro circuits work again

svn:r2280
Roger Dingledine 21 years ago
parent
commit
6d661d1bc0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/or/routerlist.c

+ 2 - 0
src/or/routerlist.c

@@ -321,6 +321,8 @@ routerinfo_t *router_choose_random_node(char *preferred, char *excluded,
       routerlist_sl_remove_unreliable_routers(sl);
       routerlist_sl_remove_unreliable_routers(sl);
     if(preferbandwidth)
     if(preferbandwidth)
       choice = routerlist_sl_choose_by_bandwidth(sl);
       choice = routerlist_sl_choose_by_bandwidth(sl);
+    else
+      choice = smartlist_choose(sl);
     smartlist_free(sl);
     smartlist_free(sl);
   }
   }
   smartlist_free(excludednodes);
   smartlist_free(excludednodes);