summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 14:17:21 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 16:03:24 +0200
commit7850496fe79c3e60a7dd87629a25b054e7bf3439 (patch)
treea5be60d1206c650268989d0c3137ae253cb1681d
parentab196c7bfb531e854b1b4fce54c6b9c113991b6d (diff)
downloadsamba-7850496fe79c3e60a7dd87629a25b054e7bf3439.tar.gz
samba-7850496fe79c3e60a7dd87629a25b054e7bf3439.tar.bz2
samba-7850496fe79c3e60a7dd87629a25b054e7bf3439.zip
s3: Lift the smbd_messaging_context from enumprinterdrivers_level
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 9aaa7cfb10..d6830dace6 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -6849,6 +6849,7 @@ static WERROR enumprinterdrivers_level_by_architecture(TALLOC_CTX *mem_ctx,
static WERROR enumprinterdrivers_level(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info *server_info,
+ struct messaging_context *msg_ctx,
const char *servername,
const char *architecture,
uint32_t level,
@@ -6867,7 +6868,7 @@ static WERROR enumprinterdrivers_level(TALLOC_CTX *mem_ctx,
result = enumprinterdrivers_level_by_architecture(mem_ctx,
server_info,
- smbd_messaging_context(),
+ msg_ctx,
servername,
archi_table[a].long_archi,
level,
@@ -6888,7 +6889,7 @@ static WERROR enumprinterdrivers_level(TALLOC_CTX *mem_ctx,
return enumprinterdrivers_level_by_architecture(mem_ctx,
server_info,
- smbd_messaging_context(),
+ msg_ctx,
servername,
architecture,
level,
@@ -6926,6 +6927,7 @@ WERROR _spoolss_EnumPrinterDrivers(struct pipes_struct *p,
result = enumprinterdrivers_level(p->mem_ctx,
p->server_info,
+ p->msg_ctx,
cservername,
r->in.environment,
r->in.level,