From ff4611832a0b498b83590279a7153e606a4720f5 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 2 Apr 2008 06:02:45 +0200 Subject: [PATCH] wbinfo: catch NULL domain string as in other places metze --- source/nsswitch/wbinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/nsswitch/wbinfo.c b/source/nsswitch/wbinfo.c index 6707f9d927f..66ffa8126d0 100644 --- a/source/nsswitch/wbinfo.c +++ b/source/nsswitch/wbinfo.c @@ -508,7 +508,7 @@ static bool wbinfo_domain_info(const char *domain) struct wbcDomainInfo *dinfo = NULL; char *sid_str = NULL; - if (strcmp(domain, ".") == 0 || domain[0] == '\0') { + if ((domain == NULL) || (strequal(domain, ".")) || (domain[0] == '\0')) { domain = get_winbind_domain(); } -- 2.11.4.GIT