summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 14:39:40 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 16:03:26 +0200
commit99b2da4504307b6eefc6afbd502d931d29625ea0 (patch)
treebf4bc40edd9df93c69828448b31fb75c30e73d15 /source3/rpc_server
parentbccb7c87cca02adacd7ede9b60d543b8b3b1eb29 (diff)
downloadsamba-99b2da4504307b6eefc6afbd502d931d29625ea0.tar.gz
samba-99b2da4504307b6eefc6afbd502d931d29625ea0.tar.bz2
samba-99b2da4504307b6eefc6afbd502d931d29625ea0.zip
s3: Lift the smbd_messaging_context from is_printer_published
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index b8a8526eec..9341809128 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -3755,7 +3755,9 @@ static WERROR construct_printer_info7(TALLOC_CTX *mem_ctx,
return WERR_NOMEM;
}
- if (is_printer_published(mem_ctx, server_info, print_hnd->servername,
+ if (is_printer_published(mem_ctx, server_info,
+ smbd_messaging_context(),
+ print_hnd->servername,
lp_servicename(snum), &guid, NULL)) {
r->guid = talloc_strdup_upper(mem_ctx, GUID_string2(mem_ctx, &guid));
r->action = DSPRINT_PUBLISH;