aboutsummaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-06-02 18:12:49 +0000
committerNick Mathewson <nickm@torproject.org>2004-06-02 18:12:49 +0000
commit0932505829b3c06b1ad4828005601dce3a74586b (patch)
treee658ee4a412b58f505c846af4a8912aa6c38256e /src/or/dns.c
parentfbbb4d01c33dc7d1e8a35c495a8e4544e45e68e8 (diff)
downloadtor-0932505829b3c06b1ad4828005601dce3a74586b.tar
tor-0932505829b3c06b1ad4828005601dce3a74586b.tar.gz
Only connection_dns_remove resolving exit connections
svn:r1934
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index 964230f72..3809fe768 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -264,6 +264,9 @@ void connection_dns_remove(connection_t *conn)
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;