From 4a7f45b7e1cef13bc28d7ee50dd4b5519bdec397 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 3 Jun 2010 21:15:33 +1000 Subject: s3:smbd Give the kerberos session key a parent I can't see what would free this, so this should prevent a memory leak. Andrew Bartlett --- source3/smbd/sesssetup.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/smbd/sesssetup.c') diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c index 486b4d137f..d707ba3021 100644 --- a/source3/smbd/sesssetup.c +++ b/source3/smbd/sesssetup.c @@ -561,6 +561,8 @@ static void reply_spnego_kerberos(struct smb_request *req, data_blob_free(&server_info->user_session_key); server_info->user_session_key = session_key; + talloc_steal(server_info, session_key.data); + session_key = data_blob_null; /* register_existing_vuid keeps the server info */ -- cgit