This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] resolv: Mirror the entire resolver configuration in struct resolv_conf
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