Explorar o código

Add assertion that cpath_layer==NULL on OR circ

Nick Mathewson %!s(int64=7) %!d(string=hai) anos
pai
achega
f0b86e30d0
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/or/relay.c

+ 1 - 0
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;
   }