summaryrefslogtreecommitdiff
path: root/src/or/circuit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/circuit.c')
-rw-r--r--src/or/circuit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/circuit.c b/src/or/circuit.c
index 05307769e2..c2bf755002 100644
--- a/src/or/circuit.c
+++ b/src/or/circuit.c
@@ -989,6 +989,13 @@ int circuit_truncated(circuit_t *circ, crypt_path_t *layer) {
assert(circ);
assert(layer);
+ /* XXX Since we don't ask for truncates currently, getting a truncated
+ * means that a connection broke or an extend failed. For now,
+ * just give up.
+ */
+ circuit_close(circ);
+ return 0;
+
while(layer->next != circ->cpath) {
/* we need to clear out layer->next */
victim = layer->next;