mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3: Fix Coverity ID 242715 Uninitialized scalar variable
In an error path we are closing hive_hnd without opening it
This commit is contained in:
parent
6d5bbb9a4b
commit
9b0b60c67e
@ -2907,7 +2907,7 @@ WERROR winreg_printer_setform1(TALLOC_CTX *mem_ctx,
|
||||
struct spoolss_AddFormInfo1 *form)
|
||||
{
|
||||
uint32_t access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
|
||||
struct policy_handle hive_hnd;
|
||||
struct policy_handle hive_hnd = { 0, };
|
||||
struct policy_handle key_hnd = { 0, };
|
||||
struct winreg_String wvalue = { 0, };
|
||||
DATA_BLOB blob;
|
||||
|
Loading…
Reference in New Issue
Block a user