]> git.ipfire.org Git - thirdparty/krb5.git/commit
Check for null name_type in gss_display_name_ext
authorSolly Ross <sross@redhat.com>
Thu, 27 Aug 2015 19:55:35 +0000 (15:55 -0400)
committerTom Yu <tlyu@mit.edu>
Wed, 9 Dec 2015 22:27:09 +0000 (17:27 -0500)
commitdf13f814e5fdbad4c86eb160055ac490adc052c7
tree5ea5b32a079d0fcbe2780c59a37e10db9c0c6638
parent1411c25b7b1cb4a2d67ea46e2fd03dd09e8a28b5
Check for null name_type in gss_display_name_ext

It is possible for the input name's name_type to be GSS_C_NO_OID.
g_OID_equal() does not account for GSS_C_NO_OID, so we have to
manually check before use to prevent null pointer dereferences.

(cherry picked from commit 3fdf09ac9a36581b47f40c9d177e463cc12687ff)

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