summaryrefslogtreecommitdiff
path: root/source4/auth/session.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-11-11 15:23:02 +1300
committerKarolin Seeger <kseeger@samba.org>2015-01-15 12:33:08 +0100
commit452cc51e10b8913247e80027394c76af5ad5653d (patch)
treef0461458558bbf561efe5bac14f9d82eab194c7f /source4/auth/session.c
parentd098b6c877629af0f23070481deaccdf65acd249 (diff)
downloadsamba-452cc51e10b8913247e80027394c76af5ad5653d.tar.gz
CVE-2014-8143:auth: Force talloc type of session_info pointer to match
This helps us keep things safe in LDB where we put this in a opaque pointer. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10993 Andrew Bartlett Change-Id: I46fe53ba655ca0810c276b72fbca524884cdf22d Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/auth/session.c')
-rw-r--r--source4/auth/session.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/auth/session.c b/source4/auth/session.c
index b4b4200337a..3d8714c3e1f 100644
--- a/source4/auth/session.c
+++ b/source4/auth/session.c
@@ -233,6 +233,11 @@ struct auth_session_info *auth_session_info_from_transport(TALLOC_CTX *mem_ctx,
{
struct auth_session_info *session_info;
session_info = talloc_steal(mem_ctx, session_info_transport->session_info);
+ /*
+ * This is to allow us to check the type of this pointer using
+ * talloc_get_type()
+ */
+ talloc_set_name(session_info, "struct auth_session_info");
#ifdef HAVE_GSS_IMPORT_CRED
if (session_info_transport->exported_gssapi_credentials.length) {
struct cli_credentials *creds;