Browse Source

only call circuit_build_failed when we're circ's origin

svn:r1554
Roger Dingledine 21 years ago
parent
commit
ad2192c90f
1 changed files with 2 additions and 1 deletions
  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);
   }