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

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


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.

Florian



More information about the Libc-alpha mailing list