summaryrefslogtreecommitdiff
path: root/libc/inet/resolv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet/resolv.c')
-rw-r--r--libc/inet/resolv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c
index 21e84e52c..38a03bb9e 100644
--- a/libc/inet/resolv.c
+++ b/libc/inet/resolv.c
@@ -2170,6 +2170,7 @@ int gethostbyname_r(const char *name,
}
*h_errnop = HOST_NOT_FOUND;
+ __set_h_errno(HOST_NOT_FOUND);
i = TRY_AGAIN;
free_and_ret: