diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-11-27 12:54:57 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-11-27 12:54:57 -0500 |
commit | 0a701e537778ac9da31049f4efebf7cb2bf9c285 (patch) | |
tree | 3f6bdd2a09a7bca70acaf9059c6f10ddb6c69d01 /src/or/dnsserv.c | |
parent | a33e9f208ae088fa3d63147fad9fc23654ca7ae1 (diff) | |
download | tor-0a701e537778ac9da31049f4efebf7cb2bf9c285.tar.gz tor-0a701e537778ac9da31049f4efebf7cb2bf9c285.zip |
More fixes/debugging attempts for 17659
Diffstat (limited to 'src/or/dnsserv.c')
-rw-r--r-- | src/or/dnsserv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c index f7710908bd..ded0d8431b 100644 --- a/src/or/dnsserv.c +++ b/src/or/dnsserv.c @@ -125,6 +125,7 @@ evdns_server_callback(struct evdns_server_request *req, void *data_) /* Make a new dummy AP connection, and attach the request to it. */ entry_conn = entry_connection_new(CONN_TYPE_AP, AF_INET); conn = ENTRY_TO_EDGE_CONN(entry_conn); + CONNECTION_AP_EXPECT_NONPENDING(entry_conn); TO_CONN(conn)->state = AP_CONN_STATE_RESOLVE_WAIT; conn->is_dns_request = 1; @@ -199,6 +200,7 @@ dnsserv_launch_request(const char *name, int reverse, /* Make a new dummy AP connection, and attach the request to it. */ entry_conn = entry_connection_new(CONN_TYPE_AP, AF_INET); conn = ENTRY_TO_EDGE_CONN(entry_conn); + CONNECTION_AP_EXPECT_NONPENDING(entry_conn); conn->base_.state = AP_CONN_STATE_RESOLVE_WAIT; tor_addr_copy(&TO_CONN(conn)->addr, &control_conn->base_.addr); |