aboutsummaryrefslogtreecommitdiff
path: root/src/or/dnsserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-21 08:39:07 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-08 14:47:19 -0500
commit0792cc107ef588b9f9fa27165b73e19fbf07e92b (patch)
tree3194ccd5f53837a866288647b25f8c7b294cf22c /src/or/dnsserv.c
parenta48ba072a98a5d946079e2e0c15c84bb8c9d1a19 (diff)
downloadtor-0792cc107ef588b9f9fa27165b73e19fbf07e92b.tar.gz
tor-0792cc107ef588b9f9fa27165b73e19fbf07e92b.zip
Convert connection_free to a nulling macro.
Diffstat (limited to 'src/or/dnsserv.c')
-rw-r--r--src/or/dnsserv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c
index d254717a54..9385561d99 100644
--- a/src/or/dnsserv.c
+++ b/src/or/dnsserv.c
@@ -172,7 +172,7 @@ evdns_server_callback(struct evdns_server_request *req, void *data_)
if (connection_add(ENTRY_TO_CONN(entry_conn)) < 0) {
log_warn(LD_APP, "Couldn't register dummy connection for DNS request");
evdns_server_request_respond(req, DNS_ERR_SERVERFAILED);
- connection_free(ENTRY_TO_CONN(entry_conn));
+ connection_free_(ENTRY_TO_CONN(entry_conn));
return;
}
@@ -249,7 +249,7 @@ dnsserv_launch_request(const char *name, int reverse,
if (connection_add(TO_CONN(conn))<0) {
log_warn(LD_APP, "Couldn't register dummy connection for RESOLVE request");
- connection_free(TO_CONN(conn));
+ connection_free_(TO_CONN(conn));
return -1;
}