summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-09-28 00:10:54 +0200
committerGünther Deschner <gd@samba.org>2010-09-28 01:17:16 +0200
commit77d4c280323ffc9f5f5f17023c90d0a904e14126 (patch)
treea61ed93c0d8a6e18b5a1a34503a172ef12fabf79 /source3
parent93d7230d25427af2955a9209335f657b8a901860 (diff)
downloadsamba-77d4c280323ffc9f5f5f17023c90d0a904e14126.tar.gz
samba-77d4c280323ffc9f5f5f17023c90d0a904e14126.tar.bz2
samba-77d4c280323ffc9f5f5f17023c90d0a904e14126.zip
s3-spoolss: Fix _spoolss_EnumPrintProcDataTypes error handling
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 465f020403..89a835fb80 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -8596,6 +8596,11 @@ WERROR _spoolss_EnumPrintProcDataTypes(struct pipes_struct *p,
*r->out.needed = 0;
*r->out.info = NULL;
+ if (r->in.print_processor_name == NULL ||
+ !strequal(r->in.print_processor_name, "winprint")) {
+ return WERR_UNKNOWN_PRINTPROCESSOR;
+ }
+
switch (r->in.level) {
case 1:
result = enumprintprocdatatypes_level_1(p->mem_ctx, r->out.info,