diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-01-15 20:39:33 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-01-15 20:39:33 +0000 |
commit | d456bec06ef5f59e3b20907679a4f5783a3da45e (patch) | |
tree | 7b37cb66e2d90398c221bbd663dea583b5667818 /source3/libsmb | |
parent | d344a009efcd5611eaa23469631f54a6e1e86d00 (diff) | |
download | samba-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')
-rw-r--r-- | source3/libsmb/ntlmssp.c | 4 |
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 */ |