浏览代码

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

Nick Mathewson 18 年之前
父节点
当前提交
45b0ee42a3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/or/routerlist.c

+ 1 - 0
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);