summaryrefslogtreecommitdiff
path: root/source3/rpc_server/spoolss
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-15 11:08:12 +0100
committerVolker Lendecke <vl@samba.org>2011-03-15 11:10:46 +0100
commitf0d491205c75a7f5165d8b909590925ac80ca1c7 (patch)
tree261b9d3686bbdaa8898b4368f0e1df7fdbaaf7f1 /source3/rpc_server/spoolss
parentc98c36e38b53a30c4708b4581a6b87e7110f8ac1 (diff)
downloadsamba-f0d491205c75a7f5165d8b909590925ac80ca1c7.tar.gz
samba-f0d491205c75a7f5165d8b909590925ac80ca1c7.tar.bz2
samba-f0d491205c75a7f5165d8b909590925ac80ca1c7.zip
s3: Fix Coverity ID 2279: Uninitialized read
We passed the structure including the uninitialized elements to dcerpc_winreg_SetValue.
Diffstat (limited to 'source3/rpc_server/spoolss')
-rw-r--r--source3/rpc_server/spoolss/srv_spoolss_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_util.c b/source3/rpc_server/spoolss/srv_spoolss_util.c
index 62c95c980d..d27de5da67 100644
--- a/source3/rpc_server/spoolss/srv_spoolss_util.c
+++ b/source3/rpc_server/spoolss/srv_spoolss_util.c
@@ -2931,7 +2931,7 @@ WERROR winreg_printer_addform1(TALLOC_CTX *mem_ctx,
uint32_t access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
struct dcerpc_binding_handle *winreg_handle = NULL;
struct policy_handle hive_hnd, key_hnd;
- struct winreg_String wvalue;
+ struct winreg_String wvalue = { 0, };
DATA_BLOB blob;
uint32_t num_info = 0;
union spoolss_FormInfo *info = NULL;