Fix Ipv4&IPv6 lookup in getaddrinfo

Problem introduced in the last patch.
This commit is contained in:
Andreas Schwab 2011-06-22 14:35:49 -04:00 committed by Ulrich Drepper
parent 84e2a551a7
commit e12df166d3
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-06-22 Andreas Schwab <schwab@redhat.com>
* sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
2011-06-22 Ulrich Drepper <drepper@gmail.com>
* sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use

View File

@ -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);