summaryrefslogtreecommitdiff
path: root/source3/printing/spoolssd.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-02-18 20:51:43 +0100
committerJeremy Allison <jra@samba.org>2014-02-19 16:38:30 -0800
commita93aaec77e114fb46f8873e943244b2542f9292a (patch)
tree79277dca78346f1588ca9934d7aadfb0bb255e4b /source3/printing/spoolssd.c
parent8f0d06fa5e654f647664727db6f12901579ec2c7 (diff)
downloadsamba-a93aaec77e114fb46f8873e943244b2542f9292a.tar.gz
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>
Diffstat (limited to 'source3/printing/spoolssd.c')
-rw-r--r--source3/printing/spoolssd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/printing/spoolssd.c b/source3/printing/spoolssd.c
index 0b6980a9733..1bf87b30ead 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,