summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc_registry.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-15 10:47:02 +0100
committerVolker Lendecke <vl@samba.org>2011-03-15 11:10:42 +0100
commit4f34955e2c68809cd598f0626cb1a03ba78b1059 (patch)
treef842ee8fc70872c9b13d7d87a8f7cd272b1556c6 /source3/utils/net_rpc_registry.c
parent420be02a60ee989f27a0eebea575fd64f98742fe (diff)
downloadsamba-4f34955e2c68809cd598f0626cb1a03ba78b1059.tar.gz
samba-4f34955e2c68809cd598f0626cb1a03ba78b1059.tar.bz2
samba-4f34955e2c68809cd598f0626cb1a03ba78b1059.zip
s3: Fix Coverity ID 2290: Uninitialized read
We passed the structure including the uninitialized elements to dcerpc_winreg_DeleteKey.
Diffstat (limited to 'source3/utils/net_rpc_registry.c')
-rw-r--r--source3/utils/net_rpc_registry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c
index c98fc07655..17c5d5a4b6 100644
--- a/source3/utils/net_rpc_registry.c
+++ b/source3/utils/net_rpc_registry.c
@@ -1782,7 +1782,7 @@ static WERROR import_delete_key(struct import_ctx* ctx,
WERROR werr;
NTSTATUS status;
void* mem_ctx = talloc_new(ctx->mem_ctx);
- struct winreg_String keyname;
+ struct winreg_String keyname = { 0, };
struct policy_handle hive;
struct dcerpc_binding_handle *b = ctx->pipe_hnd->binding_handle;