From: Stefan Metzmacher Date: Wed, 16 Oct 2024 15:49:26 +0000 (+0200) Subject: s4:dsdb/common: dsdb_trust_get_incoming_passwords only needs a const ldb_message X-Git-Tag: samba-4.21.2~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=769588b25a71c560f753fbe5058a8b3ba077b7ca;p=thirdparty%2Fsamba.git s4:dsdb/common: dsdb_trust_get_incoming_passwords only needs a const ldb_message BUG: https://bugzilla.samba.org/show_bug.cgi?id=15425 Signed-off-by: Stefan Metzmacher Reviewed-by: Douglas Bagnall (cherry picked from commit f92def2f943917d8946b03f71fcf676998701815) --- diff --git a/source4/dsdb/common/util_trusts.c b/source4/dsdb/common/util_trusts.c index dcd4d315dda..be7e2012053 100644 --- a/source4/dsdb/common/util_trusts.c +++ b/source4/dsdb/common/util_trusts.c @@ -2668,7 +2668,7 @@ NTSTATUS dsdb_trust_search_tdo_by_sid(struct ldb_context *sam_ctx, return NT_STATUS_OK; } -NTSTATUS dsdb_trust_get_incoming_passwords(struct ldb_message *msg, +NTSTATUS dsdb_trust_get_incoming_passwords(const struct ldb_message *msg, TALLOC_CTX *mem_ctx, struct samr_Password **_current, struct samr_Password **_previous)