[tor-commits] [tor/master] Add assertion that cpath_layer==NULL on OR circ

nickm at torproject.org nickm at torproject.org
Thu Nov 3 18:37:16 UTC 2016


commit f0b86e30d0d53e997872a9ece42242e8e14d45c8
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Nov 3 14:36:10 2016 -0400

    Add assertion that cpath_layer==NULL on OR circ
---
 src/or/relay.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/or/relay.c b/src/or/relay.c
index f5e9a6b..99750af 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;
   }



More information about the tor-commits mailing list