From 0932505829b3c06b1ad4828005601dce3a74586b Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 2 Jun 2004 18:12:49 +0000 Subject: Only connection_dns_remove resolving exit connections svn:r1934 --- src/or/dns.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3