Do assert when calling relay_send_command_from_edge() on OR-side circs

This commit is contained in:
Ivan Markin 2016-10-17 16:06:36 +00:00 committed by David Goulet
parent 2d04946960
commit 23b878b875

View File

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