summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-05-02 03:32:00 +0000
committerRoger Dingledine <arma@torproject.org>2004-05-02 03:32:00 +0000
commitbbbc063ed9aee85a3e8e8997fd7ce8f3684bbbf8 (patch)
tree1dc6e7f1a0870ea3a589d93ef68125cde68a6560
parentbdbe0eb7bcf8d510e48bb063eba88a79a303f400 (diff)
downloadtor-bbbc063ed9aee85a3e8e8997fd7ce8f3684bbbf8.tar.gz
tor-bbbc063ed9aee85a3e8e8997fd7ce8f3684bbbf8.zip
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
-rw-r--r--src/or/circuit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/circuit.c b/src/or/circuit.c
index b97ea14eba..184bfb93c5 100644
--- a/src/or/circuit.c
+++ b/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 */