diff options
-rw-r--r-- | src/core/network.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/network.c b/src/core/network.c index 76659f3e..3e1b7c70 100644 --- a/src/core/network.c +++ b/src/core/network.c @@ -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 |