summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_winreg.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-15 10:49:00 +0100
committerVolker Lendecke <vl@samba.org>2011-03-15 11:10:42 +0100
commitcc90415062c4f1c68005fc3ff2958c189a88d949 (patch)
treee91eb32a5825d12007250ea568e97e24d03034da /source3/rpcclient/cmd_winreg.c
parent4f34955e2c68809cd598f0626cb1a03ba78b1059 (diff)
downloadsamba-cc90415062c4f1c68005fc3ff2958c189a88d949.tar.gz
samba-cc90415062c4f1c68005fc3ff2958c189a88d949.tar.bz2
samba-cc90415062c4f1c68005fc3ff2958c189a88d949.zip
s3: Fix Coverity ID 2289: Uninitialized read
We passed the structure including the uninitialized elements to dcerpc_winreg_OpenKey.
Diffstat (limited to 'source3/rpcclient/cmd_winreg.c')
-rw-r--r--source3/rpcclient/cmd_winreg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_winreg.c b/source3/rpcclient/cmd_winreg.c
index 2ba2d6d5e1..e9508e37ab 100644
--- a/source3/rpcclient/cmd_winreg.c
+++ b/source3/rpcclient/cmd_winreg.c
@@ -156,7 +156,7 @@ static WERROR cmd_winreg_querymultiplevalues_ex(struct rpc_pipe_client *cli,
NTSTATUS status;
WERROR werr;
struct policy_handle handle, key_handle;
- struct winreg_String key_name;
+ struct winreg_String key_name = { 0, };
struct dcerpc_binding_handle *b = cli->binding_handle;
struct QueryMultipleValue *values_in, *values_out;