mirror of
https://github.com/irssi/irssi.git
synced 2025-04-25 04:21:22 -05:00
Merge pull request #1542 from sortie/HOST_NOT_FOUND
Fix using HOST_NOT_FOUND instead of EAI_NONAME.
This commit is contained in:
commit
a5441f62b9
@ -430,7 +430,7 @@ int net_gethostbyname(const char *addr, IPADDR *ip4, IPADDR *ip6)
|
||||
}
|
||||
|
||||
if (count_v4 == 0 && count_v6 == 0)
|
||||
return HOST_NOT_FOUND; /* shouldn't happen? */
|
||||
return EAI_NONAME; /* shouldn't happen? */
|
||||
|
||||
/* if there are multiple addresses, return random one */
|
||||
use_v4 = count_v4 <= 1 ? 0 : rand() % count_v4;
|
||||
|
Loading…
x
Reference in New Issue
Block a user