summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 14:11:39 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 16:03:22 +0200
commit9daa6a2501a1486aa78e7eed71d12a404df2e882 (patch)
tree7353544b6987795d14a1b955aafb6b30ebbdbe66 /source3/rpc_server
parentd7803ea49c1412296220b0496e0ace7f67571237 (diff)
downloadsamba-9daa6a2501a1486aa78e7eed71d12a404df2e882.tar.gz
samba-9daa6a2501a1486aa78e7eed71d12a404df2e882.tar.bz2
samba-9daa6a2501a1486aa78e7eed71d12a404df2e882.zip
s3: Lift the smbd_messaging_context from enumprinters_level5
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index b911f05bae..535c58fc12 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -4123,6 +4123,7 @@ static WERROR enumprinters_level4(TALLOC_CTX *mem_ctx,
static WERROR enumprinters_level5(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info *server_info,
+ struct messaging_context *msg_ctx,
uint32_t flags,
const char *servername,
union spoolss_PrinterInfo **info,
@@ -4130,8 +4131,7 @@ static WERROR enumprinters_level5(TALLOC_CTX *mem_ctx,
{
DEBUG(4,("enum_all_printers_info_5\n"));
- return enum_all_printers_info_level(mem_ctx, server_info,
- smbd_messaging_context(),
+ return enum_all_printers_info_level(mem_ctx, server_info, msg_ctx,
5, flags, info, count);
}
@@ -4198,7 +4198,7 @@ WERROR _spoolss_EnumPrinters(struct pipes_struct *p,
break;
case 5:
result = enumprinters_level5(p->mem_ctx, p->server_info,
- r->in.flags, name,
+ p->msg_ctx, r->in.flags, name,
r->out.info, r->out.count);
break;
default: