This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]