[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r9629: make it stop crashing when i exercise the new entrynodes beh (tor/trunk/src/or)
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] r9629: make it stop crashing when i exercise the new entrynodes beh (tor/trunk/src/or)
- From: arma@xxxxxxxx
- Date: Fri, 23 Feb 2007 23:17:30 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Fri, 23 Feb 2007 23:17:37 -0500
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
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--;
}
});