[or-cvs] close the circuit when we get a truncated cell
Roger Dingledine
arma at seul.org
Tue Dec 9 02:07:00 UTC 2003
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
circuit.c
Log Message:
close the circuit when we get a truncated cell
Index: circuit.c
===================================================================
RCS file: /home/or/cvsroot/src/or/circuit.c,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -d -r1.111 -r1.112
--- circuit.c 3 Dec 2003 09:50:01 -0000 1.111
+++ circuit.c 9 Dec 2003 02:06:58 -0000 1.112
@@ -989,6 +989,13 @@
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;
More information about the tor-commits
mailing list