if a relay cell is unrecognized at the end of the circuit,

send back a destroy


svn:r1153
This commit is contained in:
Roger Dingledine 2004-02-28 04:48:46 +00:00
parent e59f19ca03
commit 3a1a6bb09e

View File

@ -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.");