From f1a70d1e2aad74d25c312b21a8ba3fc4b0e52839 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 29 Oct 2008 16:02:45 -0700 Subject: Coverity fix CID: 592 - null deref (can't happen but doesn't hurt to be sure). Jeremy. --- source3/winbindd/winbindd_dual.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/winbindd/winbindd_dual.c') 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 -- cgit