summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-07-12 14:25:28 +1000
committerAndrew Tridgell <tridge@samba.org>2010-07-14 16:22:49 +1000
commit1debe30689e75023fab44028ef6942a692e37e95 (patch)
tree3c798c674482c3f224dd0a745ca01bd2bd7c6d6f /source3
parent39d1a525d1bb658bd0a666c3f630a669b5399ef1 (diff)
downloadsamba-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')
-rw-r--r--source3/smbd/sesssetup.c2
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 */