diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-12-02 15:37:24 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-12-02 15:37:24 -0500 |
commit | b7015603fa014c91056fa46cb012976a9e166cd3 (patch) | |
tree | 0e873829f55b7264a2f00b23aa44635145dc6eb1 /src | |
parent | 3ebe960f3f734322ea3ea471ca6abceb245ca322 (diff) | |
download | tor-b7015603fa014c91056fa46cb012976a9e166cd3.tar tor-b7015603fa014c91056fa46cb012976a9e166cd3.tar.gz |
Fix bug 4530; check return val of tor_addr_lookup correctly
Fix on 0.2.1.5-alpha; reported by troll_un
Diffstat (limited to 'src')
-rw-r--r-- | src/common/address.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/address.c b/src/common/address.c index 46ccb1fe4..17bdea923 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); |