]> 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, 16 Sep 2015 21:24:12 +0000 (17:24 -0400)
commit5250332e15a873d8e5a2ec6e7bc1f82d337b9081
tree3affd8c08fbab743375f3f241d720052660eaf48
parent0ab7ca1d886be6223b59dc7948f7500f8872f3da
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: 8240
version_fixed: 1.13.3
status: resolved
src/lib/gssapi/mechglue/g_exp_sec_context.c