From: Roger Dingledine Date: Sat, 24 Feb 2007 04:17:29 +0000 (+0000) Subject: make it stop crashing when i exercise the new entrynodes behavior in X-Git-Tag: tor-0.1.2.8-beta~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d63c58249ed9ed7ba227bc00be66f33dce89b822;p=thirdparty%2Ftor.git 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 --- diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index d66e80a044..33d5e8e2c9 100644 --- a/src/or/circuitbuild.c +++ b/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--; } });