diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-11-03 14:36:10 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-11-03 14:36:10 -0400 |
commit | f0b86e30d0d53e997872a9ece42242e8e14d45c8 (patch) | |
tree | cf2a96d8e7736a61782d756437f8cc5312dd6a3e | |
parent | 40487b0141096ddb40bec38f7d1c6a4367d8c279 (diff) | |
download | tor-f0b86e30d0d53e997872a9ece42242e8e14d45c8.tar.gz tor-f0b86e30d0d53e997872a9ece42242e8e14d45c8.zip |
Add assertion that cpath_layer==NULL on OR circ
-rw-r--r-- | src/or/relay.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/relay.c b/src/or/relay.c index f5e9a6bb8c..99750af975 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -615,6 +615,7 @@ relay_send_command_from_edge_(streamid_t stream_id, circuit_t *circ, cell.circ_id = circ->n_circ_id; cell_direction = CELL_DIRECTION_OUT; } else { + tor_assert(! cpath_layer); cell.circ_id = TO_OR_CIRCUIT(circ)->p_circ_id; cell_direction = CELL_DIRECTION_IN; } |