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

[or-cvs] Only connection_dns_remove resolving exit connections



Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv11841/src/or

Modified Files:
	dns.c 
Log Message:
Only connection_dns_remove resolving exit connections

Index: dns.c
===================================================================
RCS file: /home/or/cvsroot/src/or/dns.c,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -d -r1.96 -r1.97
--- dns.c	1 Jun 2004 22:09:58 -0000	1.96
+++ dns.c	2 Jun 2004 18:12:49 -0000	1.97
@@ -264,6 +264,9 @@
   struct cached_resolve search;
   struct cached_resolve *resolve;
 
+  tor_assert(conn->type == CONN_TYPE_EXIT);
+  tor_assert(conn->state == EXIT_CONN_STATE_RESOLVING);
+
   strncpy(search.address, conn->address, MAX_ADDRESSLEN);
   search.address[MAX_ADDRESSLEN-1] = 0;