summaryrefslogtreecommitdiff
path: root/source3/smbd/sesssetup.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/sesssetup.c')
-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);