mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
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
This commit is contained in:
parent
dc2ab2f4e2
commit
45b0ee42a3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user