]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
assert_cpath_ok has always been broken
authorRoger Dingledine <arma@torproject.org>
Thu, 13 May 2004 07:44:21 +0000 (07:44 +0000)
committerRoger Dingledine <arma@torproject.org>
Thu, 13 May 2004 07:44:21 +0000 (07:44 +0000)
re-disable it.

svn:r1864

src/or/circuitlist.c

index 33066cf743f25c83e91bbfbe59739a7039336010..81926e8e3661484c5fdaab29edb372d973108e41 100644 (file)
@@ -423,6 +423,7 @@ static void
 {
   while(cp->prev)
     cp = cp->prev;
+  //XXX this is broken. cp is a doubly linked list.
 
   while(cp->next) {
     assert_cpath_layer_ok(cp);
@@ -478,7 +479,8 @@ void assert_circuit_ok(const circuit_t *c)
     }
   }
   if (c->cpath) {
-    assert_cpath_ok(c->cpath);
+//    assert_cpath_ok(c->cpath);
+// XXX the above call causes an infinite loop.
   }
   if (c->purpose == CIRCUIT_PURPOSE_REND_ESTABLISHED) {
     if (!c->marked_for_close) {