diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-07-12 14:25:28 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-07-14 16:22:49 +1000 |
commit | 1debe30689e75023fab44028ef6942a692e37e95 (patch) | |
tree | 3c798c674482c3f224dd0a745ca01bd2bd7c6d6f /source3/smbd | |
parent | 39d1a525d1bb658bd0a666c3f630a669b5399ef1 (diff) | |
download | samba-1debe30689e75023fab44028ef6942a692e37e95.tar.gz samba-1debe30689e75023fab44028ef6942a692e37e95.tar.bz2 samba-1debe30689e75023fab44028ef6942a692e37e95.zip |
s3:smbd Give the kerberos session key a parent
Nothing will free this, so this prevents a memory leak.
Andrew Bartlett
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/smbd')
-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 6ae7758ead..391654ebe3 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 */ |