]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
make it stop crashing when i exercise the new entrynodes behavior in
authorRoger Dingledine <arma@torproject.org>
Sat, 24 Feb 2007 04:17:29 +0000 (04:17 +0000)
committerRoger Dingledine <arma@torproject.org>
Sat, 24 Feb 2007 04:17:29 +0000 (04:17 +0000)
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

index d66e80a044ac2ab5af6f297e868b5a902f14da88..33d5e8e2c98d1e0cd0b592c7995c33326c4605d2 100644 (file)
@@ -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--;
     }
   });