mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
Fix Ipv4&IPv6 lookup in getaddrinfo
Problem introduced in the last patch.
This commit is contained in:
parent
84e2a551a7
commit
e12df166d3
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user