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

only call circuit_build_failed when we're circ's origin

svn:r1554
Roger Dingledine пре 20 година
родитељ
комит
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);
   }