mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
s3:ntlmssp: remove unused ref_count from ntlmssp_state
metze
This commit is contained in:
parent
e78558a45b
commit
7cff7d937e
@ -43,7 +43,6 @@ enum ntlmssp_message_type
|
||||
|
||||
struct ntlmssp_state
|
||||
{
|
||||
unsigned int ref_count;
|
||||
enum ntlmssp_role role;
|
||||
enum server_types server_role;
|
||||
uint32_t expected_state;
|
||||
|
@ -359,14 +359,10 @@ NTSTATUS ntlmssp_update(struct ntlmssp_state *ntlmssp_state,
|
||||
|
||||
void ntlmssp_end(struct ntlmssp_state **ntlmssp_state)
|
||||
{
|
||||
(*ntlmssp_state)->ref_count--;
|
||||
|
||||
if ((*ntlmssp_state)->ref_count == 0) {
|
||||
data_blob_free(&(*ntlmssp_state)->chal);
|
||||
data_blob_free(&(*ntlmssp_state)->lm_resp);
|
||||
data_blob_free(&(*ntlmssp_state)->nt_resp);
|
||||
TALLOC_FREE(*ntlmssp_state);
|
||||
}
|
||||
data_blob_free(&(*ntlmssp_state)->chal);
|
||||
data_blob_free(&(*ntlmssp_state)->lm_resp);
|
||||
data_blob_free(&(*ntlmssp_state)->nt_resp);
|
||||
TALLOC_FREE(*ntlmssp_state);
|
||||
|
||||
*ntlmssp_state = NULL;
|
||||
return;
|
||||
@ -924,8 +920,6 @@ NTSTATUS ntlmssp_server_start(struct ntlmssp_state **ntlmssp_state)
|
||||
|
||||
(*ntlmssp_state)->expected_state = NTLMSSP_NEGOTIATE;
|
||||
|
||||
(*ntlmssp_state)->ref_count = 1;
|
||||
|
||||
(*ntlmssp_state)->neg_flags =
|
||||
NTLMSSP_NEGOTIATE_128 |
|
||||
NTLMSSP_NEGOTIATE_56 |
|
||||
@ -1260,8 +1254,6 @@ NTSTATUS ntlmssp_client_start(struct ntlmssp_state **ntlmssp_state)
|
||||
|
||||
(*ntlmssp_state)->expected_state = NTLMSSP_INITIAL;
|
||||
|
||||
(*ntlmssp_state)->ref_count = 1;
|
||||
|
||||
(*ntlmssp_state)->neg_flags =
|
||||
NTLMSSP_NEGOTIATE_128 |
|
||||
NTLMSSP_NEGOTIATE_ALWAYS_SIGN |
|
||||
|
Loading…
Reference in New Issue
Block a user