[PATCH] resolv: Do not copy IPv4 addresses to IPv6 address array
Florian Weimer
fweimer@redhat.com
Tue Jul 4 09:47:00 GMT 2017
On 07/03/2017 10:40 PM, Andreas Schwab wrote:
> On Jun 29 2017, Florian Weimer <fweimer@redhat.com> wrote:
>
>> Andreas, if I recall correctly, you wrote get_nsaddr.
>
> Yes, the BIND resolver in FreeBSD has the same function.
What do you think about the patch I posted?
> Their way to extend _res for IPv6 is worth looking at.
They put pointers to malloc'ed state directly into _res. We could od as
well, but it will cause problems if applications copy _res, so I went
for the more complex approach.
Thanks,
Florian
More information about the Libc-alpha
mailing list