[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] fix another rogue connection_free that was causing us troub...
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] fix another rogue connection_free that was causing us troub...
- From: arma@xxxxxxxx (Roger Dingledine)
- Date: Sun, 30 Jan 2005 22:47:46 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sun, 30 Jan 2005 22:48:16 -0500
- Reply-to: or-dev@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
	circuitlist.c 
Log Message:
fix another rogue connection_free that was causing us troubles
there are no doubt more lurking.
Index: circuitlist.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/circuitlist.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- circuitlist.c	19 Jan 2005 23:13:20 -0000	1.24
+++ circuitlist.c	31 Jan 2005 03:47:38 -0000	1.25
@@ -378,9 +378,8 @@
   while (circ->resolving_streams) {
     conn = circ->resolving_streams;
     circ->resolving_streams = conn->next_stream;
-    connection_dns_remove(conn); /* remove it from resolve lists */
-    log_fn(LOG_INFO,"Freeing resolving-conn.");
-    connection_free(conn);
+    if (!conn->marked_for_close)
+      connection_mark_for_close(conn);
   }
   if (circ->p_conn)
     connection_send_destroy(circ->p_circ_id, circ->p_conn);