]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
stop the circuit_receive_relay_cell warning
authorRoger Dingledine <arma@torproject.org>
Sun, 2 May 2004 03:32:00 +0000 (03:32 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 2 May 2004 03:32:00 +0000 (03:32 +0000)
mark the circ for close if circuit_extend fails because the next
hop is not up yet; don't just return -1

svn:r1765

src/or/circuit.c

index b97ea14eba789f6485fa9e01dab2d5c1953edc42..184bfb93c55187a92dee8df964f7ff6e746197c4 100644 (file)
@@ -1585,7 +1585,8 @@ int circuit_extend(cell_t *cell, circuit_t *circ) {
                                  NULL, 0, NULL);
     return 0;
 #endif
-    return -1;
+    circuit_mark_for_close(circ);
+    return 0;
   }
 
   circ->n_addr = n_conn->addr; /* these are different if we found a twin instead */