Skip to content
Snippets Groups Projects
Commit b7015603 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Fix bug 4530; check return val of tor_addr_lookup correctly

Fix on 0.2.1.5-alpha; reported by troll_un
parent 3ebe960f
No related branches found
No related tags found
No related merge requests found
o Minor bugfixes:
- Correctly detect and handle transient lookup failures from
tor_addr_lookup. Fixes bug 4530; bugfix on 0.2.1.5-alpha.
Reported by "troll_un".
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment