From: Jeremy Allison Date: Wed, 29 Oct 2008 23:02:16 +0000 (-0700) Subject: Coverity fix CID: 592 - null deref (can't happen but doesn't hurt to be sure). X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7b24a4af219331b12836cd03353fb6a52ddae11c;p=thirdparty%2Fsamba.git Coverity fix CID: 592 - null deref (can't happen but doesn't hurt to be sure). Jeremy. --- diff --git a/source/winbindd/winbindd_dual.c b/source/winbindd/winbindd_dual.c index acf0908657d..858e9d6f4a5 100644 --- a/source/winbindd/winbindd_dual.c +++ b/source/winbindd/winbindd_dual.c @@ -1148,7 +1148,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