Skip to content

Commit

Permalink
Fix Ipv4&IPv6 lookup in getaddrinfo
Browse files Browse the repository at this point in the history
Problem introduced in the last patch.
  • Loading branch information
Andreas Schwab authored and Ulrich Drepper committed Jun 22, 2011
1 parent 84e2a55 commit e12df16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/posix/getaddrinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e12df16

Please sign in to comment.