diff options
author | Günther Deschner <gd@samba.org> | 2009-08-03 23:41:08 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-08-04 00:16:37 +0200 |
commit | 75030ff2b16a3ddb79367d970590da2375f7e3dc (patch) | |
tree | 299fd48634ad61b3d7f543713b7adb2aa4831e08 | |
parent | 7180ae0b8e866d99de6827841970f16486eec7cd (diff) | |
download | samba-75030ff2b16a3ddb79367d970590da2375f7e3dc.tar.gz samba-75030ff2b16a3ddb79367d970590da2375f7e3dc.tar.bz2 samba-75030ff2b16a3ddb79367d970590da2375f7e3dc.zip |
s3-spoolss: fix crash bug in spoolss_addprinterex_level_2.
Guenther
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 2 |
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; } |