diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | sysdeps/posix/getaddrinfo.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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 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); |