diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-07-25 22:57:07 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-07-25 22:57:07 +0000 |
commit | 7f3e2378b64f07f1bcebf80f7846a6580c29786a (patch) | |
tree | ac302f1c9fa0fbe25bce80628e713866bfe2797a /src/or/dnsserv.c | |
parent | 025a81fc18428800d60b6a5093628cec5aaa8dad (diff) | |
download | tor-7f3e2378b64f07f1bcebf80f7846a6580c29786a.tar.gz tor-7f3e2378b64f07f1bcebf80f7846a6580c29786a.zip |
r13908@catbus: nickm | 2007-07-25 18:55:47 -0400
Patch from Robert Hogan: set conn->dns_server_port correctly so that we can close dns server ports when they change, thus avoiding crashes and dangling references and other sources of unhappiness.
svn:r10933
Diffstat (limited to 'src/or/dnsserv.c')
-rw-r--r-- | src/or/dnsserv.c | 3 |
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 |