s3-spoolss: make sure to exit early and with the appropriate error code in
authorGünther Deschner <gd@samba.org>
Thu, 30 Sep 2010 00:28:41 +0000 (02:28 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 30 Sep 2010 00:59:36 +0000 (02:59 +0200)
_spoolss_GetPrinterDriver2.

Guenther

source3/rpc_server/srv_spoolss_nt.c

index 0d3b2de2c79af3a6183c33c5588478fd70221bd2..889c370c39065d1ceaeba1942c903cb106b18f4c 100644 (file)
@@ -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,