wbinfo: catch NULL domain string as in other places
authorStefan Metzmacher <metze@samba.org>
Wed, 2 Apr 2008 04:02:45 +0000 (06:02 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 3 Apr 2008 13:49:18 +0000 (15:49 +0200)
metze
(This used to be commit ff4611832a0b498b83590279a7153e606a4720f5)

source3/nsswitch/wbinfo.c

index 6707f9d927fa9d14cf23c43dc5cc59582c05ca25..66ffa8126d0c8fcecfdd2bfef50f8fddf6a3a551 100644 (file)
@@ -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();
        }