[or-cvs] call circuit_build_failed() even when the failure is immedi...

Roger Dingledine arma at seul.org
Wed Apr 14 04:32:51 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	circuit.c 
Log Message:
call circuit_build_failed() even when the failure is immediate


Index: circuit.c
===================================================================
RCS file: /home/or/cvsroot/src/or/circuit.c,v
retrieving revision 1.207
retrieving revision 1.208
diff -u -d -r1.207 -r1.208
--- circuit.c	13 Apr 2004 22:56:24 -0000	1.207
+++ circuit.c	14 Apr 2004 04:32:49 -0000	1.208
@@ -969,7 +969,7 @@
    * 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);
   }



More information about the tor-commits mailing list