summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-15 10:56:37 +0100
committerVolker Lendecke <vl@samba.org>2011-03-15 11:10:44 +0100
commitc09877113d793f57e43a73fa6ac1e55ab7307047 (patch)
treeb2a88f0001d585a258b7489497dbf48f928a2476
parent31ff8f38e7d22402224996341c705e564e597d34 (diff)
downloadsamba-c09877113d793f57e43a73fa6ac1e55ab7307047.tar.gz
samba-c09877113d793f57e43a73fa6ac1e55ab7307047.tar.bz2
samba-c09877113d793f57e43a73fa6ac1e55ab7307047.zip
s3: Fix Coverity ID 2286: Uninitialized read
We passed the structure including the uninitialized elements to dcerpc_winreg_SetValue.
-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 896a9ed7c5..049abe40fd 100644
--- a/source3/rpc_server/spoolss/srv_spoolss_util.c
+++ b/source3/rpc_server/spoolss/srv_spoolss_util.c
@@ -3232,7 +3232,7 @@ WERROR winreg_printer_setform1(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_builtin = ARRAY_SIZE(builtin_forms1);
uint32_t i;