mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
s3: Fix Coverity ID 2287: Uninitialized read
We passed the structure including the uninitialized elements to dcerpc_winreg_CreateKey.
This commit is contained in:
parent
09677d664f
commit
31ff8f38e7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user