[PATCH v2 07/12] gaih_inet: Split nscd lookup code into its own function.
Siddhesh Poyarekar
siddhesh@sourceware.org
Thu Mar 17 06:22:02 GMT 2022
On 17/03/2022 10:01, DJ Delorie via Libc-alpha wrote:
>
> Siddhesh Poyarekar via Libc-alpha <libc-alpha@sourceware.org> writes:
>> Add a new member got_ipv6 to indicate if the results have an IPv6
>> result and use it instead of the local got_ipv6.
>
> One problem - need to clear res->got_ipv6 at some point (I couldn't find
> a global "memset &res 0" that might indirectly clear it). I think once
> you get a valid ipv6 response, it wlil get stuck set to true.
I took a closer look at this and the nscd bit doesn't seem to need this;
it's the nss code below that needs the initialization. I've fixed 1/12
to resolve it; 8/12 will then propagate it to gaih_result.
Thanks,
Siddhesh
More information about the Libc-alpha
mailing list