diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-03-25 15:41:19 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-03-25 16:28:38 -0400 |
commit | 41380fa3b3bc3647699116866afda4286ba90f8b (patch) | |
tree | b2a2e6fcdb1f1dd9a1c53069c13841d0c345df4d /src/or/dns.c | |
parent | 88bb40d8f87077e2f954b6de779ac52c637c69ec (diff) | |
download | tor-41380fa3b3bc3647699116866afda4286ba90f8b.tar.gz tor-41380fa3b3bc3647699116866afda4286ba90f8b.zip |
Fixup tor_addr_to_sockaddr return convention
Diffstat (limited to 'src/or/dns.c')
-rw-r--r-- | src/or/dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index dcccd1390d..61c8f32c98 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -1206,7 +1206,7 @@ configure_nameservers(int force) struct sockaddr_storage ss; socklen = tor_addr_to_sockaddr(&addr, 0, (struct sockaddr *)&ss, sizeof(ss)); - if (socklen < 0) { + if (socklen <= 0) { log_warn(LD_BUG, "Couldn't convert outbound bind address to sockaddr." " Ignoring."); } else { |