summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-02-25 23:43:55 +0100
committerGünther Deschner <gd@samba.org>2009-02-25 23:48:30 +0100
commit9e54f4151cf0e5d958f1929d854d082635b11c39 (patch)
tree7c831c0f8b2ef5b45a99683c70243bfd54aba731 /source3
parent7e01ec5560e8193c8e8853ba49c0ee625956c1fd (diff)
downloadsamba-9e54f4151cf0e5d958f1929d854d082635b11c39.tar.gz
samba-9e54f4151cf0e5d958f1929d854d082635b11c39.tar.bz2
samba-9e54f4151cf0e5d958f1929d854d082635b11c39.zip
s3-spoolss: fix _spoolss_AddJob behaviour.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 2f89775101..5a79dcabc8 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -6619,6 +6619,10 @@ WERROR _spoolss_AddJob(pipes_struct *p,
/* this is what a NT server returns for AddJob. AddJob must fail on
* non-local printers */
+ if (r->in.level != 1) {
+ return WERR_UNKNOWN_LEVEL;
+ }
+
return WERR_INVALID_PARAM;
}