diff options
author | Andrew Bartlett <abartlet@samba.org> | 2014-11-11 15:23:02 +1300 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2015-01-12 21:17:01 +0100 |
commit | 9e15786d093ac984262394510333cb3c3d512e1a (patch) | |
tree | 2869aa8349cb2a25187f368f5e32d4ca5f7bf59b | |
parent | cc49a6005c4406efd781ebc9ab7bb0ba00a3a603 (diff) | |
download | samba-9e15786d093ac984262394510333cb3c3d512e1a.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>
-rw-r--r-- | source4/auth/session.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/auth/session.c b/source4/auth/session.c index bb0b5bca63..8c853021a1 100644 --- a/source4/auth/session.c +++ b/source4/auth/session.c @@ -204,6 +204,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; |