From: Stefan Metzmacher Date: Tue, 11 Feb 2025 16:09:17 +0000 (+0100) Subject: winbindd: move dead code into a comment X-Git-Tag: tevent-0.17.0~806 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ef7f5e26e9712db69e23fa44ca73e9723e6541b;p=thirdparty%2Fsamba.git 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 --- 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) {