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-21 Ulrich Drepper <drepper@gmail.com> [BZ #12885] diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index abd8551074..6b7423cda1 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -904,7 +904,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); |