From: Günther Deschner Date: Mon, 26 Apr 2010 19:02:12 +0000 (+0200) Subject: s3-spoolss: make sure to return success in winreg_get_driver_list() for a X-Git-Tag: samba-3.6.0pre1~2216 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed3852c2c2390c4817f76667d7605aada74d8666;p=thirdparty%2Fsamba.git s3-spoolss: make sure to return success in winreg_get_driver_list() for a non-existing architecture / version combination. Guenther --- diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c index ecb583c3e45..afe86caf76e 100644 --- a/source3/rpc_server/srv_spoolss_util.c +++ b/source3/rpc_server/srv_spoolss_util.c @@ -4026,6 +4026,9 @@ WERROR winreg_get_driver_list(TALLOC_CTX *mem_ctx, TALLOC_CTX *tmp_ctx; WERROR result; + *num_drivers = 0; + *drivers_p = NULL; + ZERO_STRUCT(hive_hnd); ZERO_STRUCT(key_hnd); @@ -4049,6 +4052,7 @@ WERROR winreg_get_driver_list(TALLOC_CTX *mem_ctx, DEBUG(5, ("winreg_get_driver_list: " "Could not open key (%s,%u): %s\n", architecture, version, win_errstr(result))); + result = WERR_OK; goto done; }