summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-15 11:06:49 +0100
committerVolker Lendecke <vl@samba.org>2011-03-15 11:10:46 +0100
commitc98c36e38b53a30c4708b4581a6b87e7110f8ac1 (patch)
tree34fda054fe9fac79d64d9d03b1e0d1cf07a46a89 /source3/rpc_client
parent6b584e0e9a93b6e2a4601635f019960acd0a2a1d (diff)
downloadsamba-c98c36e38b53a30c4708b4581a6b87e7110f8ac1.tar.gz
samba-c98c36e38b53a30c4708b4581a6b87e7110f8ac1.tar.bz2
samba-c98c36e38b53a30c4708b4581a6b87e7110f8ac1.zip
s3: Fix Coverity ID 2280: Uninitialized read
We passed the structure including the uninitialized elements to dcerpc_winreg_SetValue.
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_winreg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_winreg.c b/source3/rpc_client/cli_winreg.c
index 3c8e4fe193..893f4b040b 100644
--- a/source3/rpc_client/cli_winreg.c
+++ b/source3/rpc_client/cli_winreg.c
@@ -379,7 +379,7 @@ NTSTATUS dcerpc_winreg_set_dword(TALLOC_CTX *mem_ctx,
uint32_t data,
WERROR *pwerr)
{
- struct winreg_String wvalue;
+ struct winreg_String wvalue = { 0, };
DATA_BLOB blob;
WERROR result = WERR_OK;
NTSTATUS status;