mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 14:40:51 +01:00
If we want to be more strict in _routerlist_find_elt I better call it properly
svn:r10726
This commit is contained in:
parent
b092f7f8d2
commit
d071df748a
1 changed files with 1 additions and 1 deletions
|
@ -2126,7 +2126,7 @@ routerlist_replace(routerlist_t *rl, routerinfo_t *ri_old,
|
||||||
smartlist_set(rl->routers, idx, ri_new);
|
smartlist_set(rl->routers, idx, ri_new);
|
||||||
ri_old->routerlist_index = -1;
|
ri_old->routerlist_index = -1;
|
||||||
ri_new->routerlist_index = idx;
|
ri_new->routerlist_index = idx;
|
||||||
tor_assert( _routerlist_find_elt(rl->routers, ri_old, 0) == -1 );
|
tor_assert( _routerlist_find_elt(rl->routers, ri_old, -1) == -1 );
|
||||||
} else {
|
} else {
|
||||||
log_warn(LD_BUG, "Appending entry from routerlist_replace.");
|
log_warn(LD_BUG, "Appending entry from routerlist_replace.");
|
||||||
routerlist_insert(rl, ri_new);
|
routerlist_insert(rl, ri_new);
|
||||||
|
|
Loading…
Add table
Reference in a new issue