[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] stop the circuit_receive_relay_cell warning



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:
stop the circuit_receive_relay_cell warning
mark the circ for close if circuit_extend fails because the next
hop is not up yet; don't just return -1


Index: circuit.c
===================================================================
RCS file: /home/or/cvsroot/src/or/circuit.c,v
retrieving revision 1.227
retrieving revision 1.228
diff -u -d -r1.227 -r1.228
--- circuit.c	28 Apr 2004 20:31:32 -0000	1.227
+++ circuit.c	2 May 2004 03:32:00 -0000	1.228
@@ -1585,7 +1585,8 @@
                                  NULL, 0, NULL);
     return 0;
 #endif
-    return -1;
+    circuit_mark_for_close(circ);
+    return 0;
   }
 
   circ->n_addr = n_conn->addr; /* these are different if we found a twin instead */