瀏覽代碼

Oops; the "not in the routerlist" value for routerinfo_t.routerlist_index is -1, not 0.

svn:r10060
Nick Mathewson 17 年之前
父節點
當前提交
5b26a076c6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/routerlist.c

+ 1 - 1
src/or/routerlist.c

@@ -4776,7 +4776,7 @@ routerlist_check_bug_417(void)
 #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