From 77d4c280323ffc9f5f5f17023c90d0a904e14126 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 28 Sep 2010 00:10:54 +0200 Subject: s3-spoolss: Fix _spoolss_EnumPrintProcDataTypes error handling --- source3/rpc_server/srv_spoolss_nt.c | 5 +++++ 1 file changed, 5 insertions(+) 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, -- cgit