diff options
author | Volker Lendecke <vl@samba.org> | 2012-05-09 10:56:54 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-05-10 09:11:58 +0200 |
commit | 815eb53b3397495b4b6eeade267442bafb12aa82 (patch) | |
tree | 0b3c49f4233a29b8569c436b4caa3ce65cbbbe81 | |
parent | 9b0b60c67ed0f819b3616b99d35300e678e18b80 (diff) | |
download | samba-815eb53b3397495b4b6eeade267442bafb12aa82.tar.gz samba-815eb53b3397495b4b6eeade267442bafb12aa82.tar.bz2 samba-815eb53b3397495b4b6eeade267442bafb12aa82.zip |
s3: Fix Coverity ID 242714 Uninitialized scalar variable
In an error path we are closing domain_handle without opening it
-rw-r--r-- | source3/rpc_server/netlogon/srv_netlog_nt.c | 3 |
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 00d64a8aeb..f640a2e81f 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; |