summaryrefslogtreecommitdiff
path: root/src/core/network.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/network.c')
-rw-r--r--src/core/network.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/network.c b/src/core/network.c
index 3904d01c..6be87113 100644
--- a/src/core/network.c
+++ b/src/core/network.c
@@ -414,7 +414,9 @@ int net_gethostbyname(const char *addr, IPADDR *ip4, IPADDR *ip6)
return count > 0 ? 0 : 1;
#else
hp = gethostbyname(addr);
- if (hp == NULL) return h_errno;
+ if (hp == NULL)
+ return -1;
+ //return h_errno;
ip4->family = AF_INET;
memcpy(&ip4->ip, hp->h_addr, 4);