From 23b878b875d7feab195be0e856da4aa3f5ac2e15 Mon Sep 17 00:00:00 2001 From: Ivan Markin Date: Mon, 17 Oct 2016 16:06:36 +0000 Subject: [PATCH] Do assert when calling relay_send_command_from_edge() on OR-side circs --- src/or/relay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/or/relay.c b/src/or/relay.c index 823e0743bd..aa29cc805e 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -617,7 +617,7 @@ relay_send_command_from_edge_(streamid_t stream_id, circuit_t *circ, cell.circ_id = TO_OR_CIRCUIT(circ)->p_circ_id; cell_direction = CELL_DIRECTION_IN; } else { - return -1; + tor_assert(0); } memset(&rh, 0, sizeof(rh));