]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
call circuit_build_failed() even when the failure is immediate
authorRoger Dingledine <arma@torproject.org>
Wed, 14 Apr 2004 04:32:49 +0000 (04:32 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 14 Apr 2004 04:32:49 +0000 (04:32 +0000)
svn:r1617

src/or/circuit.c

index f6a73c643ade667488ce7781139231859e787e04..d0fc81fec7a80378656626dfaadba90c54ed2c17 100644 (file)
@@ -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);
   }