summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-05-09 10:56:54 +0200
committerVolker Lendecke <vl@samba.org>2012-05-10 09:11:58 +0200
commit9b0b60c67ed0f819b3616b99d35300e678e18b80 (patch)
tree4ccc30b801dca653102a22b52893d156863376f0 /source3
parent6d5bbb9a4bd3d1fb045f4e0873196a9b1d93ae2a (diff)
downloadsamba-9b0b60c67ed0f819b3616b99d35300e678e18b80.tar.gz
samba-9b0b60c67ed0f819b3616b99d35300e678e18b80.tar.bz2
samba-9b0b60c67ed0f819b3616b99d35300e678e18b80.zip
s3: Fix Coverity ID 242715 Uninitialized scalar variable
In an error path we are closing hive_hnd without opening it
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_winreg_spoolss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_winreg_spoolss.c b/source3/rpc_client/cli_winreg_spoolss.c
index 4aa1f28cb9..7bd5033dcb 100644
--- a/source3/rpc_client/cli_winreg_spoolss.c
+++ b/source3/rpc_client/cli_winreg_spoolss.c
@@ -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;