From: Ralph Boehme Date: Mon, 10 May 2021 10:08:17 +0000 (+0200) Subject: mdssvc: pass messaging context to mds_init_ctx() X-Git-Tag: tevent-0.11.0~345 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1ef2828e1025e4c89292df1dfa6161c4453b3afe;p=thirdparty%2Fsamba.git mdssvc: pass messaging context to mds_init_ctx() This is needed in a subsequent commit. Note that I prefer to do the event context unwrapping in the caller and pass both the event and messaging context explicitly to mds_init_ctx(). BUG: https://bugzilla.samba.org/show_bug.cgi?id=14740 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/rpc_server/mdssvc/mdssvc.c b/source3/rpc_server/mdssvc/mdssvc.c index 60934fb63cc..a568ed35125 100644 --- a/source3/rpc_server/mdssvc/mdssvc.c +++ b/source3/rpc_server/mdssvc/mdssvc.c @@ -1525,6 +1525,7 @@ static int mds_ctx_destructor_cb(struct mds_ctx *mds_ctx) **/ struct mds_ctx *mds_init_ctx(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct messaging_context *msg_ctx, struct auth_session_info *session_info, int snum, const char *sharename, diff --git a/source3/rpc_server/mdssvc/mdssvc.h b/source3/rpc_server/mdssvc/mdssvc.h index 7d9a902a80b..d37f6846711 100644 --- a/source3/rpc_server/mdssvc/mdssvc.h +++ b/source3/rpc_server/mdssvc/mdssvc.h @@ -150,6 +150,7 @@ extern bool mds_init(struct messaging_context *msg_ctx); extern bool mds_shutdown(void); struct mds_ctx *mds_init_ctx(TALLOC_CTX *mem_ctx, struct tevent_context *ev, + struct messaging_context *msg_ctx, struct auth_session_info *session_info, int snum, const char *sharename, diff --git a/source3/rpc_server/mdssvc/srv_mdssvc_nt.c b/source3/rpc_server/mdssvc/srv_mdssvc_nt.c index 56ebe68c7e9..b8eed8b6ff9 100644 --- a/source3/rpc_server/mdssvc/srv_mdssvc_nt.c +++ b/source3/rpc_server/mdssvc/srv_mdssvc_nt.c @@ -96,6 +96,7 @@ static NTSTATUS create_mdssvc_policy_handle(TALLOC_CTX *mem_ctx, mds_ctx = mds_init_ctx(mem_ctx, messaging_tevent_context(p->msg_ctx), + p->msg_ctx, p->session_info, snum, sharename,