mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Only connection_dns_remove resolving exit connections
svn:r1934
This commit is contained in:
parent
fbbb4d01c3
commit
0932505829
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user