From 7ef7f5e26e9712db69e23fa44ca73e9723e6541b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 11 Feb 2025 17:09:17 +0100 Subject: [PATCH] winbindd: move dead code into a comment 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 Reviewed-by: Jennifer Sutton Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Tue Feb 11 23:18:02 UTC 2025 on atb-devel-224 --- source3/winbindd/winbindd_util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source3/winbindd/winbindd_util.c b/source3/winbindd/winbindd_util.c index 71a6fc34cf3..69f57d8728c 100644 --- a/source3/winbindd/winbindd_util.c +++ b/source3/winbindd/winbindd_util.c @@ -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) { -- 2.47.2