]> 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)
committerGreg Hudson <ghudson@mit.edu>
Mon, 14 Sep 2015 23:46:43 +0000 (19:46 -0400)
commit4f35b27a9ee38ca0b557ce8e6d059924a63d4eff
tree92362b3dbf22d309ba8d91d5cf5992afbb54412f
parent1e4a0394d0085e48d732ab318f9cbe08e9359587
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]

ticket: 8240 (new)
target_version: 1.13.3
tags: pullup
src/lib/gssapi/mechglue/g_exp_sec_context.c