aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuit.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-04-26 04:32:01 +0000
committerRoger Dingledine <arma@torproject.org>2004-04-26 04:32:01 +0000
commitfb2279b90bf92b8395c315dc316a5999b4223759 (patch)
tree2bd0f5963590b07adb2c35a2caddf3e902af47aa /src/or/circuit.c
parentbd38df847201e7574693be2993035a96decc164c (diff)
downloadtor-fb2279b90bf92b8395c315dc316a5999b4223759.tar.gz
tor-fb2279b90bf92b8395c315dc316a5999b4223759.zip
since we don't support truncateds much, don't bother sending them;
just close the circ. (this wasn't relevant before, because we were mis-handling destroys.) svn:r1711
Diffstat (limited to 'src/or/circuit.c')
-rw-r--r--src/or/circuit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/circuit.c b/src/or/circuit.c
index 3964ac1b69..f2a94d8a10 100644
--- a/src/or/circuit.c
+++ b/src/or/circuit.c
@@ -1573,9 +1573,12 @@ int circuit_extend(cell_t *cell, circuit_t *circ) {
struct in_addr in;
in.s_addr = htonl(circ->n_addr);
log_fn(LOG_INFO,"Next router (%s:%d) not connected. Closing.", inet_ntoa(in), circ->n_port);
+#if 0 /* if we do truncateds, no need to kill circ */
connection_edge_send_command(NULL, circ, RELAY_COMMAND_TRUNCATED,
NULL, 0, NULL);
return 0;
+#endif
+ return -1;
}
circ->n_addr = n_conn->addr; /* these are different if we found a twin instead */