summaryrefslogtreecommitdiff
path: root/src/or/dnsserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-01-06 20:50:55 +0000
committerNick Mathewson <nickm@torproject.org>2009-01-06 20:50:55 +0000
commit462f64b6b993d46f5b61c7e2333cc526d15ba884 (patch)
treee5c9ff1ec2a7a77da5a46fc7016d5cad79ff0a4d /src/or/dnsserv.c
parent585d4a12b50aa0151411c777a6c7d266d71fb46f (diff)
downloadtor-462f64b6b993d46f5b61c7e2333cc526d15ba884.tar.gz
tor-462f64b6b993d46f5b61c7e2333cc526d15ba884.zip
Make outgoing DNS requests respect OutboundBindAddress.
Fixes the bug part of bug 789. svn:r17983
Diffstat (limited to 'src/or/dnsserv.c')
-rw-r--r--src/or/dnsserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c
index 11002e9d7f..36d072110d 100644
--- a/src/or/dnsserv.c
+++ b/src/or/dnsserv.c
@@ -294,7 +294,7 @@ void
dnsserv_configure_listener(connection_t *conn)
{
tor_assert(conn);
- tor_assert(conn->s);
+ tor_assert(conn->s >= 0);
tor_assert(conn->type == CONN_TYPE_AP_DNS_LISTENER);
conn->dns_server_port = evdns_add_server_port(conn->s, 0,