summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-09-30 02:28:41 +0200
committerGünther Deschner <gd@samba.org>2010-09-30 02:59:36 +0200
commitc82d6c0b96817129ab6fa23ef8f5d421fd6c7001 (patch)
treec88f7cec4e2d0a9987ecfa12a952a85da65f7a22
parent575ae3ed728974236512b029f8217d99c6fc8526 (diff)
downloadsamba-c82d6c0b96817129ab6fa23ef8f5d421fd6c7001.tar.gz
samba-c82d6c0b96817129ab6fa23ef8f5d421fd6c7001.tar.bz2
samba-c82d6c0b96817129ab6fa23ef8f5d421fd6c7001.zip
s3-spoolss: make sure to exit early and with the appropriate error code in
_spoolss_GetPrinterDriver2. Guenther
-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 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,