summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-05-11 00:23:01 +0200
committerVolker Lendecke <vl@samba.org>2008-05-11 00:23:36 +0200
commit6b6bb484a8049c5acf88b94f9106e40d96bf56ae (patch)
treed617694acfb45ae0791435db2ef563ab27633878 /source3
parent4f9b325fb2e9872e4c306791306cd08eb7ac6ef6 (diff)
downloadsamba-6b6bb484a8049c5acf88b94f9106e40d96bf56ae.tar.gz
samba-6b6bb484a8049c5acf88b94f9106e40d96bf56ae.tar.bz2
samba-6b6bb484a8049c5acf88b94f9106e40d96bf56ae.zip
Fix a memleak in new auth_serversupplied code
(This used to be commit f23e970848b6e6655453fa65f6f160f624acfcff)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/sesssetup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 7cff422507..5b00403140 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -652,7 +652,8 @@ static void reply_spnego_ntlmssp(struct smb_request *req,
data_blob_free(&server_info->user_session_key);
server_info->user_session_key =
- data_blob(
+ data_blob_talloc(
+ server_info,
(*auth_ntlmssp_state)->ntlmssp_state->session_key.data,
(*auth_ntlmssp_state)->ntlmssp_state->session_key.length);