From b7015603fa014c91056fa46cb012976a9e166cd3 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 2 Dec 2011 15:37:24 -0500 Subject: Fix bug 4530; check return val of tor_addr_lookup correctly Fix on 0.2.1.5-alpha; reported by troll_un --- src/common/address.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/address.c b/src/common/address.c index 46ccb1fe4a..17bdea9238 100644 --- a/src/common/address.c +++ b/src/common/address.c @@ -1034,7 +1034,7 @@ tor_addr_port_parse(const char *s, tor_addr_t *addr_out, uint16_t *port_out) ++port; } - if (tor_addr_lookup(tmp, AF_UNSPEC, &addr) < 0) + if (tor_addr_lookup(tmp, AF_UNSPEC, &addr) != 0) goto err; tor_free(tmp); -- cgit v1.2.3-54-g00ecf