Преглед изворни кода

Restore erroneously removed assert

svn:r796
Nick Mathewson пре 22 година
родитељ
комит
99a6d48f62
1 измењених фајлова са 1 додато и 1 уклоњено
  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) {