r12538@Kushana: nickm | 2007-03-11 17:10:22 -0400

Fix a lame assert, I hope.


svn:r9801
This commit is contained in:
Nick Mathewson 2007-03-11 21:10:54 +00:00
parent 7fedd6ab4e
commit 6363a7ccf5

View File

@ -1709,7 +1709,7 @@ routerlist_replace(routerlist_t *rl, routerinfo_t *ri_old,
}
ri_tmp = digestmap_set(rl->identity_map,
ri_new->cache_info.identity_digest, ri_new);
tor_assert(!ri_tmp);
tor_assert(!ri_tmp || ri_tmp == ri_old);
digestmap_set(rl->desc_digest_map,
ri_new->cache_info.signed_descriptor_digest, &(ri_new->cache_info));