diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-10-02 20:15:39 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2012-10-02 20:48:30 -0400 |
commit | 78e8eb5f2dfd1c811da5a6d522540dfe32ac3cb1 (patch) | |
tree | 83e20113f9e6f6e654279859b59e797f935fe693 /src/or/dns.c | |
parent | 57b13ad5cc9423f53a105e5d0c0a83246e68adfc (diff) | |
download | tor-78e8eb5f2dfd1c811da5a6d522540dfe32ac3cb1.tar.gz tor-78e8eb5f2dfd1c811da5a6d522540dfe32ac3cb1.zip |
Fix compilation error left over from 1cbf45bed1. (Bug 7021)
Diffstat (limited to 'src/or/dns.c')
-rw-r--r-- | src/or/dns.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index 78893bfbed..4c9114c198 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -1210,15 +1210,11 @@ configure_nameservers(int force) } #ifdef HAVE_EVDNS_SET_DEFAULT_OUTGOING_BIND_ADDRESS - if (options->OutboundBindAddress) { - tor_addr_t addr; - if (tor_addr_parse(&addr, options->OutboundBindAddress) < 0) { - log_warn(LD_CONFIG,"Outbound bind address '%s' didn't parse. Ignoring.", - options->OutboundBindAddress); - } else { + if (! tor_addr_is_null(options->_OutboundBindAddressIPv4)) { + if (1) { int socklen; struct sockaddr_storage ss; - socklen = tor_addr_to_sockaddr(&addr, 0, + socklen = tor_addr_to_sockaddr(&options->_OutboundBindAddressIPv4, 0, (struct sockaddr *)&ss, sizeof(ss)); if (socklen <= 0) { log_warn(LD_BUG, "Couldn't convert outbound bind address to sockaddr." |