Explorar o código

make it stop crashing when i exercise the new entrynodes behavior in
r9574. this hack is getting pretty darn hackish; perhaps it's time to
not use SMARTLIST_FOREACH in this situation.


svn:r9629

Roger Dingledine %!s(int64=18) %!d(string=hai) anos
pai
achega
d63c58249e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/or/circuitbuild.c

+ 1 - 0
src/or/circuitbuild.c

@@ -2280,6 +2280,7 @@ entry_guards_prepend_from_config(void)
   SMARTLIST_FOREACH(entry_routers, routerinfo_t *, ri, {
     if (is_an_entry_guard(ri->cache_info.identity_digest)) {
       smartlist_del(entry_routers, ri_sl_idx--);
+      ri_sl_len--;
     }
   });