summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-17 12:20:20 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-17 12:20:20 +0000
commitaf249535bd8c17e38d5de05352d36747da67e551 (patch)
treef03f0e96925033ac88da13e19b10dcbff67f5420
parente33551bc0c3fcb5650d04e942996dfa68b0b86ea (diff)
downloadsamba-af249535bd8c17e38d5de05352d36747da67e551.tar.gz
samba-af249535bd8c17e38d5de05352d36747da67e551.tar.bz2
samba-af249535bd8c17e38d5de05352d36747da67e551.zip
Don't leak a session_key worth of memory at the end of the NTLMSSP auth.
(This used to be commit ae9765b84de0fd6eff790b3bff26dd3d43ec2bd6)
-rw-r--r--source3/libsmb/ntlmssp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c
index 7992c1e84a..e4398dad17 100644
--- a/source3/libsmb/ntlmssp.c
+++ b/source3/libsmb/ntlmssp.c
@@ -573,6 +573,7 @@ NTSTATUS ntlmssp_client_end(NTLMSSP_CLIENT_STATE **ntlmssp_state)
{
TALLOC_CTX *mem_ctx = (*ntlmssp_state)->mem_ctx;
+ data_blob_free(&(*ntlmssp_state)->session_key);
talloc_destroy(mem_ctx);
*ntlmssp_state = NULL;
return NT_STATUS_OK;