From: Roger Dingledine Date: Wed, 14 Apr 2004 04:32:49 +0000 (+0000) Subject: call circuit_build_failed() even when the failure is immediate X-Git-Tag: tor-0.0.6incompat-merged~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=465f0e528af50f02f727c5b6b17058cb90f25f39;p=thirdparty%2Ftor.git call circuit_build_failed() even when the failure is immediate svn:r1617 --- diff --git a/src/or/circuit.c b/src/or/circuit.c index f6a73c643a..d0fc81fec7 100644 --- a/src/or/circuit.c +++ b/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); }