mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
Merge pull request #467 from dequis/EAI_SYSTEM
net_gethosterror: Handle EAI_SYSTEM ("System error") properly
This commit is contained in:
commit
0e5a32fb62
1 changed files with 5 additions and 1 deletions
|
|
@ -510,7 +510,11 @@ const char *net_gethosterror(int error)
|
|||
{
|
||||
g_return_val_if_fail(error != 0, NULL);
|
||||
|
||||
return gai_strerror(error);
|
||||
if (error == EAI_SYSTEM) {
|
||||
return strerror(errno);
|
||||
} else {
|
||||
return gai_strerror(error);
|
||||
}
|
||||
}
|
||||
|
||||
/* return TRUE if host lookup failed because it didn't exist (ie. not
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue