diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-11-07 17:41:14 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-11-07 17:41:14 +0000 |
commit | 45b0ee42a36165fca8536d04fe1e399e1e7ef6ef (patch) | |
tree | 71cec7e166df841faed0521a19995d0996654a09 | |
parent | dc2ab2f4e2338e28bb7aaaf33d514a97e8dd5707 (diff) | |
download | tor-45b0ee42a36165fca8536d04fe1e399e1e7ef6ef.tar.gz tor-45b0ee42a36165fca8536d04fe1e399e1e7ef6ef.zip |
r16531@catbus: nickm | 2007-11-07 12:39:56 -0500
Initialize re-parsed routerinfos with routerlist_index -1, since they are not yet inserted into the routerlist. Fixes another crash.
svn:r12415
-rw-r--r-- | src/or/routerlist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 5775a2a739..1e20d4b3af 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -2492,6 +2492,7 @@ routerlist_reparse_old(routerlist_t *rl, signed_descriptor_t *sd) return NULL; memcpy(&ri->cache_info, sd, sizeof(signed_descriptor_t)); sd->signed_descriptor_body = NULL; /* Steal reference. */ + ri->cache_info.routerlist_index = -1; routerlist_remove_old(rl, sd, -1); |