From: Stefan Metzmacher Date: Wed, 2 Apr 2008 04:02:45 +0000 (+0200) Subject: wbinfo: catch NULL domain string as in other places X-Git-Tag: samba-3.3.0pre1~2925 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff4611832a0b498b83590279a7153e606a4720f5;p=thirdparty%2Fsamba.git wbinfo: catch NULL domain string as in other places metze --- 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(); }