summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-08-03 23:41:08 +0200
committerGünther Deschner <gd@samba.org>2009-08-04 00:16:37 +0200
commit75030ff2b16a3ddb79367d970590da2375f7e3dc (patch)
tree299fd48634ad61b3d7f543713b7adb2aa4831e08 /source3
parent7180ae0b8e866d99de6827841970f16486eec7cd (diff)
downloadsamba-75030ff2b16a3ddb79367d970590da2375f7e3dc.tar.gz
samba-75030ff2b16a3ddb79367d970590da2375f7e3dc.tar.bz2
samba-75030ff2b16a3ddb79367d970590da2375f7e3dc.zip
s3-spoolss: fix crash bug in spoolss_addprinterex_level_2.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index d7bc2624c4..ee074745b8 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -7593,7 +7593,7 @@ static WERROR spoolss_addprinterex_level_2(pipes_struct *p,
}
/* you must be a printer admin to add a new printer */
- if (!print_access_check(NULL, snum, PRINTER_ACCESS_ADMINISTER)) {
+ if (!print_access_check(p->server_info, snum, PRINTER_ACCESS_ADMINISTER)) {
free_a_printer(&printer,2);
return WERR_ACCESS_DENIED;
}