mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Comment one tor_assert
svn:r10820
This commit is contained in:
@@ -2139,6 +2139,7 @@ routerlist_replace(routerlist_t *rl, routerinfo_t *ri_old,
|
||||
smartlist_set(rl->routers, idx, ri_new);
|
||||
ri_old->routerlist_index = -1;
|
||||
ri_new->routerlist_index = idx;
|
||||
/* Check that ri_old is not in rl->routers anymore: */
|
||||
tor_assert( _routerlist_find_elt(rl->routers, ri_old, -1) == -1 );
|
||||
} else {
|
||||
log_warn(LD_BUG, "Appending entry from routerlist_replace.");
|
||||
|
||||
Reference in New Issue
Block a user