[or-cvs] r10060: Oops; the "not in the routerlist" value for routerinfo_t.rou (tor/trunk/src/or)

nickm at seul.org nickm at seul.org
Mon Apr 30 14:32:23 UTC 2007


Author: nickm
Date: 2007-04-30 10:32:22 -0400 (Mon, 30 Apr 2007)
New Revision: 10060

Modified:
   tor/trunk/src/or/routerlist.c
Log:
Oops; the "not in the routerlist" value for routerinfo_t.routerlist_index is -1, not 0.

Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c	2007-04-30 14:26:38 UTC (rev 10059)
+++ tor/trunk/src/or/routerlist.c	2007-04-30 14:32:22 UTC (rev 10060)
@@ -4776,7 +4776,7 @@
 #endif
   }
 
-  tor_assert(ri_generated->routerlist_index == 0);
+  tor_assert(ri_generated->routerlist_index == -1);
 }
 
 /** Allocate and return a new string representing the contact info



More information about the tor-commits mailing list