Pārlūkot izejas kodu

Restore erroneously removed assert

svn:r796
Nick Mathewson 22 gadi atpakaļ
vecāks
revīzija
99a6d48f62
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/or/circuit.c

+ 1 - 1
src/or/circuit.c

@@ -731,7 +731,7 @@ int circuit_send_next_onion_skin(circuit_t *circ) {
   routerinfo_t *router;
   int r;
 
-  assert(circ);
+  assert(circ && circ->cpath);
 
   if(circ->cpath->state == CPATH_STATE_CLOSED) {