From c862d043e47a8dbd9ebe52f153623d254e5c747d Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sun, 2 May 2004 03:32:00 +0000 Subject: [PATCH] stop the circuit_receive_relay_cell warning mark the circ for close if circuit_extend fails because the next hop is not up yet; don't just return -1 svn:r1765 --- trunk/src/or/circuit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trunk/src/or/circuit.c b/trunk/src/or/circuit.c index b97ea14eba..184bfb93c5 100644 --- a/trunk/src/or/circuit.c +++ b/trunk/src/or/circuit.c @@ -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 */