[or-cvs] r10726: If we want to be more strict in _routerlist_find_elt I bette (tor/trunk/src/or)

weasel at seul.org weasel at seul.org
Mon Jul 2 20:04:27 UTC 2007


Author: weasel
Date: 2007-07-02 16:04:26 -0400 (Mon, 02 Jul 2007)
New Revision: 10726

Modified:
   tor/trunk/src/or/routerlist.c
Log:
If we want to be more strict in _routerlist_find_elt I better call it properly

Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c	2007-07-02 19:53:57 UTC (rev 10725)
+++ tor/trunk/src/or/routerlist.c	2007-07-02 20:04:26 UTC (rev 10726)
@@ -2126,7 +2126,7 @@
     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);



More information about the tor-commits mailing list