summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-03-01 03:36:02 +0000
committerJeremy Allison <jra@samba.org>2001-03-01 03:36:02 +0000
commit5fa70d774780c2b3781b8dd89784cb768fbadcb0 (patch)
treef3fa81c4a0bb8ab1a07c268de84beeac616130da /source3
parent7d853615338e4c81a2204f57a7fc22da725f55fe (diff)
downloadsamba-5fa70d774780c2b3781b8dd89784cb768fbadcb0.tar.gz
samba-5fa70d774780c2b3781b8dd89784cb768fbadcb0.tar.bz2
samba-5fa70d774780c2b3781b8dd89784cb768fbadcb0.zip
When opening a printserver use a global snum of -1.
Jeremy (This used to be commit 3f44cb6103fe8df9182fbbca7dc7888171b4352a)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 95bb64fef3..c5a15ed37e 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -825,8 +825,8 @@ uint32 _spoolss_open_printer_ex( pipes_struct *p, SPOOL_Q_OPEN_PRINTER_EX *q_u,
}
else if ((printer_default->access_required & SERVER_ACCESS_ADMINISTER ) == SERVER_ACCESS_ADMINISTER) {
- if (!get_printer_snum(handle, &snum))
- return ERROR_INVALID_HANDLE;
+ /* Printserver handles use global struct... */
+ snum = -1;
if (!lp_ms_add_printer_wizard()) {
close_printer_handle(handle);