diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-06-03 21:15:33 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-06-07 23:34:28 +1000 |
commit | 4a7f45b7e1cef13bc28d7ee50dd4b5519bdec397 (patch) | |
tree | 354cf8b35074afafee32ba0f34e0db69f7b6b3b6 | |
parent | d25e9ab9a1b8c07a65034d36818819019e170e8d (diff) | |
download | samba-4a7f45b7e1cef13bc28d7ee50dd4b5519bdec397.tar.gz samba-4a7f45b7e1cef13bc28d7ee50dd4b5519bdec397.tar.bz2 samba-4a7f45b7e1cef13bc28d7ee50dd4b5519bdec397.zip |
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
-rw-r--r-- | source3/smbd/sesssetup.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |