]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add assertion that cpath_layer==NULL on OR circ
authorNick Mathewson <nickm@torproject.org>
Thu, 3 Nov 2016 18:36:10 +0000 (14:36 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 3 Nov 2016 18:36:10 +0000 (14:36 -0400)
src/or/relay.c

index f5e9a6bb8c65f9a9d21dbdd4421ac55db0c355c5..99750af9753f893711b4039a4abab91328ee25d9 100644 (file)
@@ -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;
   }