diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/network.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/network.c b/src/core/network.c index 882e94f2..e53b0189 100644 --- a/src/core/network.c +++ b/src/core/network.c @@ -415,8 +415,7 @@ int net_gethostbyname(const char *addr, IPADDR *ip4, IPADDR *ip6) #else hp = gethostbyname(addr); if (hp == NULL) - return -1; - //return h_errno; + return h_errno; ip4->family = AF_INET; memcpy(&ip4->ip, hp->h_addr, 4); |