Commit 09325058 authored by Nick Mathewson's avatar Nick Mathewson
Browse files

Only connection_dns_remove resolving exit connections


svn:r1934
parent fbbb4d01
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment