]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix error handling in gss_export_sec_context()
authorNicolas Williams <nico@twosigma.com>
Tue, 1 Sep 2015 23:42:58 +0000 (19:42 -0400)
committerTom Yu <tlyu@mit.edu>
Wed, 9 Dec 2015 22:27:26 +0000 (17:27 -0500)
commit52d1cadf0cec3882efe46335b3784a20c7d04cc2
tree85e05362e333f534e82b6ed62f8e7dd5f2f5692e
parentdf13f814e5fdbad4c86eb160055ac490adc052c7
Fix error handling in gss_export_sec_context()

In the mechglue gss_export_sec_context(), make sure to delete the
union context if the underlying mech context has been deleted.  This
can happen if the mech's gss_export_sec_context() returns a failure
and deletes the context (not a behavior exhibited by any of our
in-tree mechanisms, but an allowed behavior for other mechs), or if we
fail to allocate space for the wrapped token.

[ghudson@mit.edu: commit message; rename exit label to "cleanup" and
make it valid for all exit cases]

(cherry picked from commit 4f35b27a9ee38ca0b557ce8e6d059924a63d4eff)

ticket: 8311 (new)
version_fixed: 1.12.5
status: resolved
src/lib/gssapi/mechglue/g_exp_sec_context.c