summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-04-02 06:02:45 +0200
committerStefan Metzmacher <metze@samba.org>2008-04-03 15:49:18 +0200
commite8ca249d3f2997bb9b75588f794161e74597595a (patch)
treec2c74d689a9f0c992cdd9e2f785b673f56db05ab
parent2830626877acdbfbaba342b8790cfbd1fe0dc0a5 (diff)
downloadsamba-e8ca249d3f2997bb9b75588f794161e74597595a.tar.gz
samba-e8ca249d3f2997bb9b75588f794161e74597595a.tar.bz2
samba-e8ca249d3f2997bb9b75588f794161e74597595a.zip
wbinfo: catch NULL domain string as in other places
metze (This used to be commit ff4611832a0b498b83590279a7153e606a4720f5)
-rw-r--r--source3/nsswitch/wbinfo.c2
1 files changed, 1 insertions, 1 deletions
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();
}