From d63c58249ed9ed7ba227bc00be66f33dce89b822 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 24 Feb 2007 04:17:29 +0000 Subject: 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 --- src/or/circuitbuild.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/or/circuitbuild.c') diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index d66e80a04..33d5e8e2c 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--; } }); -- cgit v1.2.3