summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-10-29 16:02:45 -0700
committerJeremy Allison <jra@samba.org>2008-10-29 16:02:45 -0700
commitf1a70d1e2aad74d25c312b21a8ba3fc4b0e52839 (patch)
treedd50a2ced298593db07dad923f06069e04a91634
parenta238144c6ebf4d51e0d8c8b3cfd0e87814573c85 (diff)
downloadsamba-f1a70d1e2aad74d25c312b21a8ba3fc4b0e52839.tar.gz
samba-f1a70d1e2aad74d25c312b21a8ba3fc4b0e52839.tar.bz2
samba-f1a70d1e2aad74d25c312b21a8ba3fc4b0e52839.zip
Coverity fix CID: 592 - null deref (can't happen but doesn't hurt to be sure).
Jeremy.
-rw-r--r--source3/winbindd/winbindd_dual.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c
index 994c94b5be..03d1e043bf 100644
--- a/source3/winbindd/winbindd_dual.c
+++ b/source3/winbindd/winbindd_dual.c
@@ -1259,7 +1259,7 @@ static bool fork_domain_child(struct winbindd_child *child)
set_domain_online_request(child->domain);
- if (primary_domain != child->domain) {
+ if (primary_domain && (primary_domain != child->domain)) {
/* We need to talk to the primary
* domain as well as the trusted
* domain inside a trusted domain