]> git.ipfire.org Git - thirdparty/krb5.git/commit
Check context handle in gss_export_sec_context()
authorTomas Kuthan <tkuthan@gmail.com>
Tue, 29 Dec 2015 10:47:49 +0000 (11:47 +0100)
committerTom Yu <tlyu@mit.edu>
Fri, 8 Jan 2016 22:09:24 +0000 (17:09 -0500)
commitb77b952da9ab4bbdb6430f102c0338166a99646c
treeb40019cf1b2609290e9274ed5ff9566938d8d645
parentd19f02e21f98b5f94c04263dfdde0f0c06ce4683
Check context handle in gss_export_sec_context()

After commit 4f35b27a9ee38ca0b557ce8e6d059924a63d4eff, the
context_handle parameter in gss_export_sec_context() is dereferenced
before arguments are validated by val_exp_sec_ctx_args().  With a null
context_handle, the new code segfaults instead of failing gracefully.
Revert this part of the commit and only dereference context_handle if
it is non-null.

(cherry picked from commit b6f29cbd2ab132e336b5435447348400e9a9e241)

ticket: 8334
version_fixed: 1.13.4
tags: -pullup
status: resolved
src/lib/gssapi/mechglue/g_exp_sec_context.c