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

source3/rpc_client/cli_winreg.c

index 893f4b040b0a7609786ee6017628d4c9aafaee11..5b8635f1e023415ab6c97a914433245f26181d17 100644 (file)
@@ -538,7 +538,7 @@ NTSTATUS dcerpc_winreg_set_binary(TALLOC_CTX *mem_ctx,
                                  DATA_BLOB *data,
                                  WERROR *pwerr)
 {
-       struct winreg_String wvalue;
+       struct winreg_String wvalue = { 0, };
        WERROR result = WERR_OK;
        NTSTATUS status;