summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-08 14:28:17 +0200
committerVolker Lendecke <vl@samba.org>2010-08-08 16:03:25 +0200
commitbe7fd4ae5054435b25b1a6a460b626d556f39936 (patch)
tree6f330c02c00a23963c553dc8634e49a5de234f7b /source3/rpc_server
parentd79895e82606bcfe265a67bf9a6b7e03368f0bae (diff)
downloadsamba-be7fd4ae5054435b25b1a6a460b626d556f39936.tar.gz
samba-be7fd4ae5054435b25b1a6a460b626d556f39936.tar.bz2
samba-be7fd4ae5054435b25b1a6a460b626d556f39936.zip
s3: Lift the smbd_messaging_context from print_access_check
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 1acde48d44..f3f1efcee8 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -1650,7 +1650,7 @@ WERROR _spoolss_OpenPrinterEx(struct pipes_struct *p,
if (!user_ok_token(uidtoname(p->server_info->utok.uid), NULL,
p->server_info->ptok, snum) ||
- !print_access_check(p->server_info, snum,
+ !print_access_check(p->server_info, p->msg_ctx, snum,
r->in.access_mask)) {
DEBUG(3, ("access DENIED for printer open\n"));
close_printer_handle(p, r->out.handle);
@@ -7374,7 +7374,8 @@ static WERROR spoolss_addprinterex_level_2(struct pipes_struct *p,
}
/* you must be a printer admin to add a new printer */
- if (!print_access_check(p->server_info, snum, PRINTER_ACCESS_ADMINISTER)) {
+ if (!print_access_check(p->server_info, p->msg_ctx, snum,
+ PRINTER_ACCESS_ADMINISTER)) {
return WERR_ACCESS_DENIED;
}