]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r16531@catbus: nickm | 2007-11-07 12:39:56 -0500
authorNick Mathewson <nickm@torproject.org>
Wed, 7 Nov 2007 17:41:14 +0000 (17:41 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 7 Nov 2007 17:41:14 +0000 (17:41 +0000)
 Initialize re-parsed routerinfos with routerlist_index -1, since they are not yet inserted into the routerlist.  Fixes another crash.

svn:r12415

src/or/routerlist.c

index 5775a2a73995ade39515c7a615502abeba3e686f..1e20d4b3af5bf963bb2de46cb10d8cecb42100bc 100644 (file)
@@ -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);