From 10a76f5d42253aa726104f38a325424e6cf1d7ad Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 8 Aug 2010 18:53:15 +0200 Subject: [PATCH] s3: Remove the smbd_messaging_context from spoolss_init_cb --- source3/smbd/process.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source3/smbd/process.c b/source3/smbd/process.c index afc30face88..05e53904d77 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -2862,7 +2862,9 @@ fail: static bool spoolss_init_cb(void *ptr) { - return nt_printing_tdb_migrate(smbd_messaging_context()); + struct messaging_context *msg_ctx = talloc_get_type_abort( + ptr, struct messaging_context); + return nt_printing_tdb_migrate(msg_ctx); } /**************************************************************************** @@ -3124,7 +3126,7 @@ void smbd_process(struct smbd_server_connection *sconn) */ spoolss_cb.init = spoolss_init_cb; spoolss_cb.shutdown = NULL; - + spoolss_cb.private_data = sconn->msg_ctx; if (!NT_STATUS_IS_OK(rpc_winreg_init(NULL))) { exit(1); -- 2.11.4.GIT