[PATCH] resolv: Mirror the entire resolver configuration in struct resolv_conf

Florian Weimer fweimer@redhat.com
Tue Jul 4 12:55:00 GMT 2017


On 07/04/2017 02:21 PM, Florian Weimer wrote:
> On 07/04/2017 02:16 PM, Andreas Schwab wrote:
>> 298         if (!(resp->dnsrch[0] == resp->defdname
>> 299               && resp->dnsrch[MAXDNSRCH] == NULL))
> 
> Ah.  I assume this breaks for defname[0] == '\0' and dnsrch[0] == NULL.
> 
> It seems that this is triggered by having a host name which does not
> contain a dot.  I'll fix this and add a test case.  Thanks.

And this is the fix I'm going to commit.

Thanks,
Florian



More information about the Libc-alpha mailing list