about summary refs log tree commit diff
path: root/sysdeps/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-06-12 22:31:43 +0000
committerUlrich Drepper <drepper@redhat.com>2003-06-12 22:31:43 +0000
commit2ce1a10fd6a59d6767e0064296e6c0adfa43198a (patch)
tree980d361cbe359fbf1db5a3bfa003faf37c13571c /sysdeps/posix
parentad316adfa6d389f27f726e1e377a66e3cdd9748e (diff)
downloadglibc-2ce1a10fd6a59d6767e0064296e6c0adfa43198a.tar.gz
glibc-2ce1a10fd6a59d6767e0064296e6c0adfa43198a.tar.xz
glibc-2ce1a10fd6a59d6767e0064296e6c0adfa43198a.zip
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.
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)
 	    {