summaryrefslogtreecommitdiffstats
path: root/source3/rpc_server
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
commit815eb53b3397495b4b6eeade267442bafb12aa82 (patch)
tree0b3c49f4233a29b8569c436b4caa3ce65cbbbe81 /source3/rpc_server
parent9b0b60c67ed0f819b3616b99d35300e678e18b80 (diff)
downloadsamba-815eb53b3397495b4b6eeade267442bafb12aa82.tar.gz
samba-815eb53b3397495b4b6eeade267442bafb12aa82.tar.xz
samba-815eb53b3397495b4b6eeade267442bafb12aa82.zip
s3: Fix Coverity ID 242714 Uninitialized scalar variable
In an error path we are closing domain_handle without opening it
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/netlogon/srv_netlog_nt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/rpc_server/netlogon/srv_netlog_nt.c b/source3/rpc_server/netlogon/srv_netlog_nt.c
index 00d64a8aeb1..f640a2e81f3 100644
--- a/source3/rpc_server/netlogon/srv_netlog_nt.c
+++ b/source3/rpc_server/netlogon/srv_netlog_nt.c
@@ -506,7 +506,8 @@ static NTSTATUS samr_find_machine_account(TALLOC_CTX *mem_ctx,
{
NTSTATUS status;
NTSTATUS result = NT_STATUS_OK;
- struct policy_handle connect_handle, domain_handle;
+ struct policy_handle connect_handle;
+ struct policy_handle domain_handle = { 0, };
struct lsa_String domain_name;
struct dom_sid2 *domain_sid;
struct lsa_String names;