summaryrefslogtreecommitdiff
path: root/src/or/dnsserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/dnsserv.c')
-rw-r--r--src/or/dnsserv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c
index 0bc91ed791..360f722f66 100644
--- a/src/or/dnsserv.c
+++ b/src/or/dnsserv.c
@@ -255,7 +255,8 @@ dnsserv_configure_listener(connection_t *conn)
tor_assert(conn->s);
tor_assert(conn->type == CONN_TYPE_AP_DNS_LISTENER);
- evdns_add_server_port(conn->s, 0, evdns_server_callback, NULL);
+ conn->dns_server_port = evdns_add_server_port(conn->s, 0,
+ evdns_server_callback, NULL);
}
/** Free the evdns server port for <b>conn</b>, which must be an