[krbdev.mit.edu #8240] git commit

Tom Yu via RT rt-comment at krbdev.mit.edu
Wed Sep 16 17:27:33 EDT 2015


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 at mit.edu: commit message; rename exit label to "cleanup" and
make it valid for all exit cases]

(cherry picked from commit 4f35b27a9ee38ca0b557ce8e6d059924a63d4eff)

https://github.com/krb5/krb5/commit/5250332e15a873d8e5a2ec6e7bc1f82d337b9081
Author: Nicolas Williams <nico at twosigma.com>
Committer: Tom Yu <tlyu at mit.edu>
Commit: 5250332e15a873d8e5a2ec6e7bc1f82d337b9081
Branch: krb5-1.13
 src/lib/gssapi/mechglue/g_exp_sec_context.c |   30 +++++++++++++++-----------
 1 files changed, 17 insertions(+), 13 deletions(-)



More information about the krb5-bugs mailing list