summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc_conf.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-05-09 10:51:54 +0200
committerVolker Lendecke <vl@samba.org>2012-05-10 09:11:57 +0200
commitaa220c498166f98cfe8bd4177c443f03237e2e9e (patch)
tree0a4f376889677a65497f605114316c22bcdb2270 /source3/utils/net_rpc_conf.c
parentdead2168a2fa47d99251baa894e9c932074d1734 (diff)
downloadsamba-aa220c498166f98cfe8bd4177c443f03237e2e9e.tar.gz
samba-aa220c498166f98cfe8bd4177c443f03237e2e9e.tar.bz2
samba-aa220c498166f98cfe8bd4177c443f03237e2e9e.zip
s3: Fix Coverity ID 242725 Uninitialized scalar variable
Not a functional bug, but we copy all of the "key" structure inside dcerpc_winreg_CreateKey.
Diffstat (limited to 'source3/utils/net_rpc_conf.c')
-rw-r--r--source3/utils/net_rpc_conf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/net_rpc_conf.c b/source3/utils/net_rpc_conf.c
index 4e2118d1c1..8c5717c519 100644
--- a/source3/utils/net_rpc_conf.c
+++ b/source3/utils/net_rpc_conf.c
@@ -1084,6 +1084,7 @@ static NTSTATUS rpc_conf_drop_internal(struct net_context *c,
goto error;
}
+ ZERO_STRUCT(wkey);
wkey.name = keyname;
ZERO_STRUCT(wkeyclass);
wkeyclass.name = "";