From cb1329f0a85112f6d981e8731a51bc1f246f7fea Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sat, 28 Feb 2004 04:48:46 +0000 Subject: [PATCH] if a relay cell is unrecognized at the end of the circuit, send back a destroy svn:r1153 --- trunk/src/or/circuit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/or/circuit.c b/trunk/src/or/circuit.c index 9ba946f300..13145c029c 100644 --- a/trunk/src/or/circuit.c +++ b/trunk/src/or/circuit.c @@ -439,7 +439,7 @@ int circuit_receive_relay_cell(cell_t *cell, circuit_t *circ, 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.");