Yes, I did mean "else if".

svn:r2016
This commit is contained in:
Nick Mathewson 2004-07-06 23:29:34 +00:00
parent d5e275ddf4
commit 88451ce25b

View File

@ -1712,7 +1712,7 @@ int tor_lookup_hostname(const char *name, uint32_t *addr)
if (!*name) {
/* Empty address is an error. */
return -1;
} if (tor_inet_aton(name, &iaddr)) {
} else if (tor_inet_aton(name, &iaddr)) {
/* It's an IP. */
memcpy(addr, &iaddr.s_addr, 4);
return 0;