[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] if a relay cell is unrecognized at the end of the circuit,



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:
if a relay cell is unrecognized at the end of the circuit,
send back a destroy


Index: circuit.c
===================================================================
RCS file: /home/or/cvsroot/src/or/circuit.c,v
retrieving revision 1.140
retrieving revision 1.141
diff -u -d -r1.140 -r1.141
--- circuit.c	28 Feb 2004 03:06:31 -0000	1.140
+++ circuit.c	28 Feb 2004 04:48:46 -0000	1.141
@@ -439,7 +439,7 @@
 
   if(!conn) {
     log_fn(LOG_WARN,"Didn't recognize cell, but circ stops here! Dropping.");
-    return 0; /* XXX if this warning never triggers, then return -1 */
+    return -1;
   }
 
   log_fn(LOG_DEBUG,"Passing on unrecognized cell.");