]> git.ipfire.org Git - thirdparty/krb5.git/commit
Check internal context on init context errors
authorSimo Sorce <simo@redhat.com>
Tue, 5 Jan 2016 17:11:59 +0000 (12:11 -0500)
committerTom Yu <tlyu@mit.edu>
Fri, 8 Jan 2016 22:09:29 +0000 (17:09 -0500)
commitac6ee6338cbf93a1b2bda3c4ebfeab0df56128fe
tree54d1b81f53b62c83d3662b3ec93ea4726b06526a
parentb77b952da9ab4bbdb6430f102c0338166a99646c
Check internal context on init context errors

If the mechanism deletes the internal context handle on error, the
mechglue must do the same with the union context, to avoid crashes if
the application calls other functions with this invalid union context.

[ghudson@mit.edu: edit commit message and code comment]

(cherry picked from commit 3beb564cea3d219efcf71682b6576cad548c2d23)

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