[sudo-workers] nscd does not handle "(none)" string
Todd C. Miller
Todd.Miller at courtesan.com
Tue Sep 13 09:13:57 MDT 2016
On Tue, 13 Sep 2016 08:02:17 -0400, Tomas Sykora wrote:
> By default, when no domainname is set, the string "(none)" is returned by get
> nscd does not handle the "(none)" string, it's really using it to search for
> entries in its cache.
> This domainname value is then used as the domain parameter in the triple (hos
I may be missing something but it looks like the existing code
already does this. If getdomainname() does not fail and it contains
an illegal character, domain is freed and set to NULL.
It does look like there is a bug when getdomainname() fails though.
I've committed a fix for that in:
More information about the sudo-workers