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

[or-cvs] bugfix: while closing a circuit, we were freeing the conns ...



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

Modified Files:
	circuitlist.c 
Log Message:
bugfix: while closing a circuit, we were freeing the conns that were
pending resolve, but not removing them from the pending resolve list


Index: circuitlist.c
===================================================================
RCS file: /home/or/cvsroot/src/or/circuitlist.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- circuitlist.c	21 May 2004 12:25:15 -0000	1.5
+++ circuitlist.c	2 Jun 2004 18:11:28 -0000	1.6
@@ -372,6 +372,7 @@
   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);
   }