Explorar el Código

only call circuit_build_failed when we're circ's origin

svn:r1554
Roger Dingledine hace 21 años
padre
commit
ad2192c90f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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);
   }