[or-cvs] fix assert trigger in server

Roger Dingledine arma at seul.org
Mon Jan 19 04:58:41 UTC 2004


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

Modified Files:
	connection_edge.c 
Log Message:
fix assert trigger in server

Jan 18 04:11:43.312 [warn] connection_edge_send_command(): no circ. Closing.

i think it was while sending a connected relay cell back.
reason for having the circ gone is still not known. presumably the end cell
arrived at just the right time.


Index: connection_edge.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection_edge.c,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -d -r1.86 -r1.87
--- connection_edge.c	10 Jan 2004 23:40:38 -0000	1.86
+++ connection_edge.c	19 Jan 2004 04:58:39 -0000	1.87
@@ -148,6 +148,8 @@
 
   if(!circ) {
     log_fn(LOG_WARN,"no circ. Closing.");
+    assert(fromconn);
+    fromconn->marked_for_close = 1;
     return -1;
   }
 



More information about the tor-commits mailing list