mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-23 20:03:31 +01:00
Yes, I did mean "else if".
svn:r2016
This commit is contained in:
parent
d5e275ddf4
commit
88451ce25b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user