aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/getaddrinfo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index 0d6ac84ade..3cdb5df1c8 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -671,7 +671,10 @@ gaih_inet (const char *name, const struct gaih_service *service,
no_inet6_data = no_data;
}
else if (req->ai_family == AF_INET)
- gethosts (AF_INET, struct in_addr);
+ {
+ gethosts (AF_INET, struct in_addr);
+ no_inet6_data = no_data;
+ }
if (no_data != 0 && no_inet6_data != 0)
{