diff options
author | Volker Lendecke <vl@samba.org> | 2011-03-15 10:54:59 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-03-15 11:10:43 +0100 |
commit | 31ff8f38e7d22402224996341c705e564e597d34 (patch) | |
tree | 5325a22bb5361d6042b83bb9143552b0096c7a66 | |
parent | 09677d664f2a5c254549597f5b2b5203fcb0a23e (diff) | |
download | samba-31ff8f38e7d22402224996341c705e564e597d34.tar.gz samba-31ff8f38e7d22402224996341c705e564e597d34.tar.bz2 samba-31ff8f38e7d22402224996341c705e564e597d34.zip |
s3: Fix Coverity ID 2287: Uninitialized read
We passed the structure including the uninitialized elements to
dcerpc_winreg_CreateKey.
-rw-r--r-- | source3/services/svc_winreg_glue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/services/svc_winreg_glue.c b/source3/services/svc_winreg_glue.c index 65f0388167..dc367c2c41 100644 --- a/source3/services/svc_winreg_glue.c +++ b/source3/services/svc_winreg_glue.c @@ -197,7 +197,7 @@ bool svcctl_set_secdesc(struct messaging_context *msg_ctx, { enum winreg_CreateAction action = REG_ACTION_NONE; - struct winreg_String wkey; + struct winreg_String wkey = { 0, }; struct winreg_String wkeyclass; wkey.name = talloc_asprintf(tmp_ctx, "%s\\Security", key); |