[or-cvs] r9629: make it stop crashing when i exercise the new entrynodes beh (tor/trunk/src/or)
arma at seul.org
arma at seul.org
Sat Feb 24 04:17:30 UTC 2007
Author: arma
Date: 2007-02-23 23:17:29 -0500 (Fri, 23 Feb 2007)
New Revision: 9629
Modified:
tor/trunk/src/or/circuitbuild.c
Log:
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.
Modified: tor/trunk/src/or/circuitbuild.c
===================================================================
--- tor/trunk/src/or/circuitbuild.c 2007-02-24 01:26:09 UTC (rev 9628)
+++ tor/trunk/src/or/circuitbuild.c 2007-02-24 04:17:29 UTC (rev 9629)
@@ -2280,6 +2280,7 @@
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--;
}
});
More information about the tor-commits
mailing list