]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
winbindd: move dead code into a comment
authorStefan Metzmacher <metze@samba.org>
Tue, 11 Feb 2025 16:09:17 +0000 (17:09 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 11 Feb 2025 23:18:02 +0000 (23:18 +0000)
We need to re-activate this once we support multitple domains
in out own forest.

Fixes CID 1642726:  Control flow issues  (UNREACHABLE)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Feb 11 23:18:02 UTC 2025 on atb-devel-224

source3/winbindd/winbindd_util.c

index 71a6fc34cf3947f76b60914946232800d05e6970..69f57d8728c45d369bdb3a3d6f0da461e6be600b 100644 (file)
@@ -1234,9 +1234,8 @@ static bool add_trusted_domains_dc(void)
                                    "domain[%s/%s]\n",
                                    domains[i]->netbios_name,
                                    domains[i]->domain_name);
+                       /* trust_flags |= NETR_TRUST_FLAG_IN_FOREST; */
                        continue;
-
-                       trust_flags |= NETR_TRUST_FLAG_IN_FOREST;
                }
 
                if (domains[i]->trust_attributes & LSA_TRUST_ATTRIBUTE_CROSS_ORGANIZATION) {