summaryrefslogtreecommitdiff
path: root/src/network/gethostbyname2_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/gethostbyname2_r.c')
-rw-r--r--src/network/gethostbyname2_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/gethostbyname2_r.c b/src/network/gethostbyname2_r.c
index fc894877..f012ec2f 100644
--- a/src/network/gethostbyname2_r.c
+++ b/src/network/gethostbyname2_r.c
@@ -22,7 +22,7 @@ int gethostbyname2_r(const char *name, int af,
if (cnt<0) switch (cnt) {
case EAI_NONAME:
*err = HOST_NOT_FOUND;
- return ENOENT;
+ return 0;
case EAI_AGAIN:
*err = TRY_AGAIN;
return EAGAIN;