]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
bugfix: while closing a circuit, we were freeing the conns that were
authorRoger Dingledine <arma@torproject.org>
Wed, 2 Jun 2004 18:11:28 +0000 (18:11 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 2 Jun 2004 18:11:28 +0000 (18:11 +0000)
pending resolve, but not removing them from the pending resolve list

svn:r1933

src/or/circuitlist.c

index e87931f52e5bee0730d909c29d0764a95f45e77d..c050156c82b3f98da7b9dbab21694abc2cbbd090 100644 (file)
@@ -372,6 +372,7 @@ int _circuit_mark_for_close(circuit_t *circ) {
   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);
   }