git.samba.org
/
kamenim
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39d1a52
)
s3:smbd Give the kerberos session key a parent
author
Andrew Bartlett
<abartlet@samba.org>
Mon, 12 Jul 2010 04:25:28 +0000
(14:25 +1000)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 14 Jul 2010 06:22:49 +0000
(16:22 +1000)
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>
source3/smbd/sesssetup.c
patch
|
blob
|
history
diff --git
a/source3/smbd/sesssetup.c
b/source3/smbd/sesssetup.c
index 6ae7758eade00a7135cd9ead5dec9eba1595f468..391654ebe3ba3b8a7dab40c0ae2b0907edf0c493 100644
(file)
--- 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 */