s3: Fix Coverity ID 2289: Uninitialized read
authorVolker Lendecke <vl@samba.org>
Tue, 15 Mar 2011 09:49:00 +0000 (10:49 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 15 Mar 2011 10:10:42 +0000 (11:10 +0100)
We passed the structure including the uninitialized elements to
dcerpc_winreg_OpenKey.

source3/rpcclient/cmd_winreg.c

index 2ba2d6d5e10252e301db39c212087789e21af548..e9508e37ab936e4618f2e45c129bf98e1f234acd 100644 (file)
@@ -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;