1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +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:
Volker Lendecke 2012-05-09 10:56:54 +02:00
parent 6d5bbb9a4b
commit 9b0b60c67e

View File

@ -2907,7 +2907,7 @@ WERROR winreg_printer_setform1(TALLOC_CTX *mem_ctx,
struct spoolss_AddFormInfo1 *form) struct spoolss_AddFormInfo1 *form)
{ {
uint32_t access_mask = SEC_FLAG_MAXIMUM_ALLOWED; 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 policy_handle key_hnd = { 0, };
struct winreg_String wvalue = { 0, }; struct winreg_String wvalue = { 0, };
DATA_BLOB blob; DATA_BLOB blob;