From a93aaec77e114fb46f8873e943244b2542f9292a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 18 Feb 2014 20:51:43 +0100 Subject: 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 Reviewed-by: Jeremy Allison --- source3/printing/spoolssd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/printing/spoolssd.c b/source3/printing/spoolssd.c index 0b6980a973..1bf87b30ea 100644 --- a/source3/printing/spoolssd.c +++ b/source3/printing/spoolssd.c @@ -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, -- cgit