Coverity fix CID: 592 - null deref (can't happen but doesn't hurt to be sure).
authorJeremy Allison <jra@samba.org>
Wed, 29 Oct 2008 23:02:16 +0000 (16:02 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 29 Oct 2008 23:02:16 +0000 (16:02 -0700)
Jeremy.

source/winbindd/winbindd_dual.c

index acf0908657dcd89409d01f95bb6b0892f15eec97..858e9d6f4a5a739fdd2c37f8c68b1ce6c16bb579 100644 (file)
@@ -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