From 41380fa3b3bc3647699116866afda4286ba90f8b Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 25 Mar 2011 15:41:19 -0400 Subject: Fixup tor_addr_to_sockaddr return convention --- src/or/dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/dns.c') 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 { -- cgit v1.2.3-54-g00ecf