Explorar o código

call circuit_build_failed() even when the failure is immediate

svn:r1617
Roger Dingledine %!s(int64=21) %!d(string=hai) anos
pai
achega
465f0e528a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/or/circuit.c

+ 1 - 1
src/or/circuit.c

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