[or-cvs] r12415: Initialize re-parsed routerinfos with routerlist_index -1, s (in tor/trunk: . src/or)

nickm at seul.org nickm at seul.org
Wed Nov 7 17:41:14 UTC 2007


Author: nickm
Date: 2007-11-07 12:41:14 -0500 (Wed, 07 Nov 2007)
New Revision: 12415

Modified:
   tor/trunk/
   tor/trunk/src/or/routerlist.c
Log:
 r16531 at 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.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r16531] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c	2007-11-07 17:30:08 UTC (rev 12414)
+++ tor/trunk/src/or/routerlist.c	2007-11-07 17:41:14 UTC (rev 12415)
@@ -2492,6 +2492,7 @@
     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);
 



More information about the tor-commits mailing list