From: Stefan Metzmacher Date: Wed, 2 Oct 2024 16:04:27 +0000 (+0200) Subject: s4:dsdb/common: samdb_confirm_rodc_allowed_to_repl_to() only needs a const sid X-Git-Tag: ldb-2.9.2~52 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=a3b8c49a9982da45fe1e4a1f32848c4e554fd165;p=thirdparty%2Fsamba.git s4:dsdb/common: samdb_confirm_rodc_allowed_to_repl_to() only needs a const sid BUG: https://bugzilla.samba.org/show_bug.cgi?id=15425 Signed-off-by: Stefan Metzmacher Reviewed-by: Douglas Bagnall (cherry picked from commit c9eaf5e22de730f1e7575f6697f32dbb377eae06) --- diff --git a/source4/dsdb/common/rodc_helper.c b/source4/dsdb/common/rodc_helper.c index b4982aee9ed..2b2a0ae7826 100644 --- a/source4/dsdb/common/rodc_helper.c +++ b/source4/dsdb/common/rodc_helper.c @@ -237,7 +237,7 @@ WERROR samdb_confirm_rodc_allowed_to_repl_to_sid_list(struct ldb_context *sam_ct * rather than relying on the caller providing those */ WERROR samdb_confirm_rodc_allowed_to_repl_to(struct ldb_context *sam_ctx, - struct dom_sid *rodc_machine_account_sid, + const struct dom_sid *rodc_machine_account_sid, struct ldb_message *rodc_msg, struct ldb_message *obj_msg) {