From d071df748a51bd8fc21143cf0559437ebc936679 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 2 Jul 2007 20:04:26 +0000 Subject: [PATCH] If we want to be more strict in _routerlist_find_elt I better call it properly svn:r10726 --- src/or/routerlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 8678733d1a..6703ef7e35 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -2126,7 +2126,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; - tor_assert( _routerlist_find_elt(rl->routers, ri_old, 0) == -1 ); + tor_assert( _routerlist_find_elt(rl->routers, ri_old, -1) == -1 ); } else { log_warn(LD_BUG, "Appending entry from routerlist_replace."); routerlist_insert(rl, ri_new);