1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s4:dsdb/repl_meta_data: let replmd_process_backlink() use the source_dn variable

We first create source_dn as trimmed down copy of bl->forward_dn
and then only use it for debug messages.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12967

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Stefan Metzmacher 2023-03-01 00:42:53 +01:00 committed by Andrew Bartlett
parent c9fac2e912
commit 2340443c3b

View File

@ -475,7 +475,7 @@ static int replmd_process_backlink(struct ldb_module *module, struct la_backlink
/* construct a ldb_message for adding/deleting the backlink */
msg->dn = target_dn;
dn_string = ldb_dn_get_extended_linearized(frame, bl->forward_dn, 1);
dn_string = ldb_dn_get_extended_linearized(frame, source_dn, 1);
if (!dn_string) {
ldb_module_oom(module);
talloc_free(frame);