summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-08-03 23:41:08 +0200
committerKarolin Seeger <kseeger@samba.org>2009-08-13 14:27:27 +0200
commita6a93eb0bda5859b42ae2b4f6dd51ed438891f78 (patch)
treea361d5cfe33bfcb51c20722d3e9f73b8db2f579b
parent516be01408db4e8efe75535fbdb7a0facf9973d1 (diff)
downloadsamba-a6a93eb0bda5859b42ae2b4f6dd51ed438891f78.tar.gz
samba-a6a93eb0bda5859b42ae2b4f6dd51ed438891f78.tar.xz
samba-a6a93eb0bda5859b42ae2b4f6dd51ed438891f78.zip
s3-spoolss: fix crash bug in spoolss_addprinterex_level_2.
Fixes bug #6607. Guenther (cherry picked from commit 75030ff2b16a3ddb79367d970590da2375f7e3dc) (cherry picked from commit e7e1a6b3237550ef90db6a52a023885f616f722b)
-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 8170680c688..87735d330b2 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -7530,7 +7530,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;
}