From e8ca249d3f2997bb9b75588f794161e74597595a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 2 Apr 2008 06:02:45 +0200 Subject: wbinfo: catch NULL domain string as in other places metze (This used to be commit ff4611832a0b498b83590279a7153e606a4720f5) --- source3/nsswitch/wbinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c index 6707f9d927..66ffa8126d 100644 --- a/source3/nsswitch/wbinfo.c +++ b/source3/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(); } -- cgit