[PATCH] Filter results from gethostbyname4_r according to request flags

Ulrich Drepper drepper@gmail.com
Tue Jun 21 21:06:00 GMT 2011


On Tue, Jun 21, 2011 at 11:23, Andreas Schwab <schwab@redhat.com> wrote:
> 2011-06-21  Andreas Schwab  <schwab@redhat.com>
>
>        [BZ #12885]
>        * sysdeps/posix/getaddrinfo.c (gaih_inet): Filter results from
>        gethostbyname4_r according to request flags.

This patch isn't correct.  We need to ignore the IPv4 entries, keep
track of whether we found any data.  And there is no reason to copy
anything.  I think the patch I applied is correct.  Give it a try.



More information about the Libc-hacker mailing list