From c82d6c0b96817129ab6fa23ef8f5d421fd6c7001 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 30 Sep 2010 02:28:41 +0200 Subject: s3-spoolss: make sure to exit early and with the appropriate error code in _spoolss_GetPrinterDriver2. Guenther --- source3/rpc_server/srv_spoolss_nt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 0d3b2de2c7..889c370c39 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -5398,6 +5398,10 @@ static WERROR construct_printer_driver_info_level(TALLOC_CTX *mem_ctx, struct spoolss_DriverInfo8 *driver; WERROR result; + if (level == 101) { + return WERR_UNKNOWN_LEVEL; + } + result = winreg_get_printer(mem_ctx, server_info, msg_ctx, -- cgit