summaryrefslogtreecommitdiff
path: root/source3/libsmb/ntlmssp.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-01-15 20:39:33 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-01-15 20:39:33 +0000
commitd456bec06ef5f59e3b20907679a4f5783a3da45e (patch)
tree7b37cb66e2d90398c221bbd663dea583b5667818 /source3/libsmb/ntlmssp.c
parentd344a009efcd5611eaa23469631f54a6e1e86d00 (diff)
downloadsamba-d456bec06ef5f59e3b20907679a4f5783a3da45e.tar.gz
samba-d456bec06ef5f59e3b20907679a4f5783a3da45e.tar.bz2
samba-d456bec06ef5f59e3b20907679a4f5783a3da45e.zip
Missed auth_ntlmssp.c in last night's checkin. Also keep track of the current
challenge in the NTLMSSP context. Andrew Bartlett (This used to be commit ba13e058d4533b1ffba723b9e98e95090ad63d85)
Diffstat (limited to 'source3/libsmb/ntlmssp.c')
-rw-r--r--source3/libsmb/ntlmssp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c
index 4183f3e77a..21f3612034 100644
--- a/source3/libsmb/ntlmssp.c
+++ b/source3/libsmb/ntlmssp.c
@@ -65,6 +65,7 @@ NTSTATUS ntlmssp_server_end(NTLMSSP_STATE **ntlmssp_state)
{
TALLOC_CTX *mem_ctx = (*ntlmssp_state)->mem_ctx;
+ data_blob_free(&(*ntlmssp_state)->chal);
data_blob_free(&(*ntlmssp_state)->lm_resp);
data_blob_free(&(*ntlmssp_state)->nt_resp);
@@ -146,6 +147,9 @@ NTSTATUS ntlmssp_negotiate(NTLMSSP_STATE *ntlmssp_state,
cryptkey = ntlmssp_state->get_challenge(ntlmssp_state->auth_context);
+ data_blob_free(&ntlmssp_state->chal);
+ ntlmssp_state->chal = data_blob(cryptkey, 8);
+
/* Give them the challenge. For now, ignore neg_flags and just
return the flags we want. Obviously this is not correct */