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:45 +0000 (16:02 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 29 Oct 2008 23:02:45 +0000 (16:02 -0700)
Jeremy.

source3/winbindd/winbindd_dual.c

index 994c94b5befd7401a6dac4d4d4bff2c0c79a5438..03d1e043bf1c577d6f28f7469405930c350684ca 100644 (file)
@@ -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