浏览代码

only call circuit_build_failed when we're circ's origin

svn:r1554
Roger Dingledine 21 年之前
父节点
当前提交
ad2192c90f
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/or/circuit.c

+ 2 - 1
src/or/circuit.c

@@ -873,7 +873,8 @@ int _circuit_mark_for_close(circuit_t *circ) {
    * links worked and which didn't.
    */
   if (circ->state != CIRCUIT_STATE_OPEN) {
-    circuit_build_failed(circ); /* take actions if necessary */
+    if(circ->cpath) //XXX
+      circuit_build_failed(circ); /* take actions if necessary */
     circuit_rep_hist_note_result(circ);
   }