[or-cvs] fix duplicate call to connection_mark_for_close

Roger Dingledine arma at seul.org
Sun Feb 29 22:07:47 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 duplicate call to connection_mark_for_close


Index: connection_edge.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection_edge.c,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -d -r1.104 -r1.105
--- connection_edge.c	29 Feb 2004 22:04:52 -0000	1.104
+++ connection_edge.c	29 Feb 2004 22:07:44 -0000	1.105
@@ -215,6 +215,7 @@
     if(rh.command == RELAY_COMMAND_END) {
       log_fn(LOG_INFO,"Exit got end (%s) before we're connected. Marking for close.",
         connection_edge_end_reason(cell->payload+RELAY_HEADER_SIZE, rh.length));
+      conn->has_sent_end = 1; /* we just got an 'end', don't need to send one */
       connection_mark_for_close(conn, 0);
       return 0;
     }



More information about the tor-commits mailing list