r12808@catbus: nickm | 2007-05-19 14:48:51 -0400

Fix another consistency error. 


svn:r10221
This commit is contained in:
Nick Mathewson 2007-05-19 18:48:53 +00:00
parent 48e30ce2c7
commit 4d3ec5919e

View File

@ -1885,6 +1885,8 @@ routerlist_remove(routerlist_t *rl, routerinfo_t *ri, int idx, int make_old)
sd = signed_descriptor_from_routerinfo(ri);
smartlist_add(rl->old_routers, sd);
digestmap_set(rl->desc_digest_map, sd->signed_descriptor_digest, sd);
if (!tor_digest_is_zero(sd->extra_info_digest))
digestmap_set(rl->desc_by_eid_map, sd->extra_info_digest, sd);
} else {
ri_tmp = digestmap_remove(rl->desc_digest_map,
ri->cache_info.signed_descriptor_digest);