瀏覽代碼

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;
   routerinfo_t *router;
   int r;
   int r;
 
 
-  assert(circ);
+  assert(circ && circ->cpath);
 
 
   if(circ->cpath->state == CPATH_STATE_CLOSED) {
   if(circ->cpath->state == CPATH_STATE_CLOSED) {