From 2ce1a10fd6a59d6767e0064296e6c0adfa43198a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 12 Jun 2003 22:31:43 +0000 Subject: Update. * sysdeps/posix/getaddrinfo.c (gaih_inet): Set no_inet6_date alse if only PF_INET address is needed. * nss/getXXbyYY_r.c: Make sure we always return a nonzero value in case of an error. --- sysdeps/posix/getaddrinfo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sysdeps/posix') 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) { -- cgit 1.4.1