summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 18:53:15 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 23:37:47 +0200
commit10a76f5d42253aa726104f38a325424e6cf1d7ad (patch)
tree121a6cddad947a5b7573cd5b833cb295aaafe31b
parentb71f2af1a6e0db46c6aaf3a732e8352f340fdfac (diff)
downloadsamba-10a76f5d42253aa726104f38a325424e6cf1d7ad.tar.gz
samba-10a76f5d42253aa726104f38a325424e6cf1d7ad.tar.bz2
samba-10a76f5d42253aa726104f38a325424e6cf1d7ad.zip
s3: Remove the smbd_messaging_context from spoolss_init_cb
-rw-r--r--source3/smbd/process.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index afc30face8..05e53904d7 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);