From d2205ca458e25115287462292087f0f5ed797c02 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 5 Jul 2011 17:11:22 -0400 Subject: 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. --- src/or/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/main.c') 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); } } -- cgit v1.2.3