aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-07-05 17:11:22 -0400
committerNick Mathewson <nickm@torproject.org>2011-07-19 01:58:44 -0400
commitd2205ca458e25115287462292087f0f5ed797c02 (patch)
tree51717e10a5347ccb378b97245797babfdaf24447 /src/or/main.c
parentddc65e2b3303559ab7b842a176ee6c2eda9e4027 (diff)
downloadtor-d2205ca458e25115287462292087f0f5ed797c02.tar
tor-d2205ca458e25115287462292087f0f5ed797c02.tar.gz
Refactor listener_connection_t into its own type.
This will allow us to add more fields to listener_connection_t without bloating the other connection types.
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 1baefc71b..16d4f0e7a 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -290,7 +290,7 @@ connection_unregister_events(connection_t *conn)
conn->bufev = NULL;
}
#endif
- if (conn->dns_server_port) {
+ if (conn->type == CONN_TYPE_AP_DNS_LISTENER) {
dnsserv_close_listener(conn);
}
}