summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-12-24 22:00:08 +0100
committerStefan Metzmacher <metze@samba.org>2009-12-29 08:19:01 +0100
commit7cff7d937e067642f76a1785696653ec07a5495c (patch)
treeb9f1a7bf79775a803a90bda84d7f6dfa5dd2e245 /source3
parente78558a45b5f149603ac97139f1a1e421833969f (diff)
downloadsamba-7cff7d937e067642f76a1785696653ec07a5495c.tar.gz
samba-7cff7d937e067642f76a1785696653ec07a5495c.tar.bz2
samba-7cff7d937e067642f76a1785696653ec07a5495c.zip
s3:ntlmssp: remove unused ref_count from ntlmssp_state
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/include/ntlmssp.h1
-rw-r--r--source3/libsmb/ntlmssp.c16
2 files changed, 4 insertions, 13 deletions
diff --git a/source3/include/ntlmssp.h b/source3/include/ntlmssp.h
index e8903993b5..83c75ea4ff 100644
--- a/source3/include/ntlmssp.h
+++ b/source3/include/ntlmssp.h
@@ -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;
diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c
index 759a8ebdb3..6ce7718bf1 100644
--- a/source3/libsmb/ntlmssp.c
+++ b/source3/libsmb/ntlmssp.c
@@ -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 |