summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2018-02-01 23:08:08 +0100
committerStefan Metzmacher <metze@samba.org>2018-09-05 13:31:42 +0200
commit96ae85bcc1ec0e8523f475a8060522ff120bad37 (patch)
tree48a2efe4078da3a854508cda9fca4061c5db5439 /source4/dsdb
parentb7bd12dd7ea98bab82cfccc19230a41426c2346d (diff)
downloadsamba-96ae85bcc1ec0e8523f475a8060522ff120bad37.tar.gz
dsdb/util_trusts: domain_dn is an input parameter of dsdb_trust_crossref_tdo_info()
We should not overwrite it within the function. Currently it doesn't matter as we don't have multiple domains within our forest, but that will change in future. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11517 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit f5f96f558b499770cdeb3d38998167a387e058b9)
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/common/util_trusts.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source4/dsdb/common/util_trusts.c b/source4/dsdb/common/util_trusts.c
index 7dcbea2ce6d..154dd947212 100644
--- a/source4/dsdb/common/util_trusts.c
+++ b/source4/dsdb/common/util_trusts.c
@@ -482,12 +482,6 @@ static NTSTATUS dsdb_trust_crossref_tdo_info(TALLOC_CTX *mem_ctx,
*_trust_parent_tdo = NULL;
}
- domain_dn = ldb_get_default_basedn(sam_ctx);
- if (domain_dn == NULL) {
- TALLOC_FREE(frame);
- return NT_STATUS_INTERNAL_ERROR;
- }
-
partitions_dn = samdb_partitions_dn(sam_ctx, frame);
if (partitions_dn == NULL) {
TALLOC_FREE(frame);