mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
spoolssd: Use only one messaging_context per process
After the fork, the code created a fresh messaging_context before doing the reinit_after_fork. This means to have two initialized messaging contexts in that process. This patch aligns spoolssd with lsad. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
8f0d06fa5e
commit
a93aaec77e
@ -285,7 +285,7 @@ static bool spoolss_child_init(struct tevent_context *ev_ctx,
|
||||
{
|
||||
NTSTATUS status;
|
||||
struct rpc_srv_callbacks spoolss_cb;
|
||||
struct messaging_context *msg_ctx = messaging_init(NULL, ev_ctx);
|
||||
struct messaging_context *msg_ctx = server_messaging_context();
|
||||
bool ok;
|
||||
|
||||
status = reinit_after_fork(msg_ctx, ev_ctx,
|
||||
|
Loading…
x
Reference in New Issue
Block a user