Browse Source

forward-port r10318

svn:r10319
Roger Dingledine 18 years ago
parent
commit
42d7b0877d
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/or/circuitbuild.c

+ 4 - 2
src/or/circuitbuild.c

@@ -2347,8 +2347,10 @@ choose_random_entry(cpath_build_state_t *state)
   int need_uptime = state->need_uptime;
   int need_capacity = state->need_capacity;
 
-  smartlist_add(exit_family, chosen_exit);
-  routerlist_add_family(exit_family, chosen_exit);
+  if (chosen_exit) {
+    smartlist_add(exit_family, chosen_exit);
+    routerlist_add_family(exit_family, chosen_exit);
+  }
 
   if (!entry_guards)
     entry_guards = smartlist_create();