aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix/getaddrinfo.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2011-06-22 14:35:49 -0400
committerUlrich Drepper <drepper@gmail.com>2011-06-22 14:35:49 -0400
commite12df166d37522c2ed434c2d70a1b04640d2d7c6 (patch)
tree59ae8db294e4dda9b8f0f0d2aff357c6b1587887 /sysdeps/posix/getaddrinfo.c
parent84e2a551a72c79b020694bb327e33b6d71b09b63 (diff)
downloadglibc-e12df166d37522c2ed434c2d70a1b04640d2d7c6.tar
glibc-e12df166d37522c2ed434c2d70a1b04640d2d7c6.tar.gz
glibc-e12df166d37522c2ed434c2d70a1b04640d2d7c6.tar.bz2
glibc-e12df166d37522c2ed434c2d70a1b04640d2d7c6.zip
Fix Ipv4&IPv6 lookup in getaddrinfo
Problem introduced in the last patch.
Diffstat (limited to 'sysdeps/posix/getaddrinfo.c')
-rw-r--r--sysdeps/posix/getaddrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index 3a2737e2cb..14e9270b1b 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -894,7 +894,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
pat = &((*pat)->next);
no_data = 0;
}
- else if ((*pat)->family == AF_UNSPEC
+ else if (req->ai_family == AF_UNSPEC
|| (*pat)->family == req->ai_family)
{
pat = &((*pat)->next);