From 3a1a6bb09eeb84376151e4f84dbc063cad5bc21f 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 --- src/or/circuit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/circuit.c b/src/or/circuit.c index 9ba946f300..13145c029c 100644 --- a/src/or/circuit.c +++ b/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."); -- 2.11.4.GIT