Recognize IAKERB mech in krb5_gss_display_status
authorGreg Hudson <ghudson@mit.edu>
Mon, 21 Nov 2011 17:30:41 +0000 (17:30 +0000)
committerGreg Hudson <ghudson@mit.edu>
Mon, 21 Nov 2011 17:30:41 +0000 (17:30 +0000)
Minor status codes were not displaying properly when originated from
the IAKERB mech, because of a safety check on mech_type.  From Ralf
Haferkamp <rhafer@suse.de>.

ticket: 7020
target_version: 1.10
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25482 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/disp_status.c

index cb440b4394df18f6d7a9bcead2f059aa119caa68..d33ad7f2c314c4973e5d2091af50956a0eec2ab4 100644 (file)
@@ -168,7 +168,8 @@ krb5_gss_display_status(minor_status, status_value, status_type,
 
     if ((mech_type != GSS_C_NULL_OID) &&
         !g_OID_equal(gss_mech_krb5, mech_type) &&
-        !g_OID_equal(gss_mech_krb5_old, mech_type)) {
+        !g_OID_equal(gss_mech_krb5_old, mech_type) &&
+        !g_OID_equal(gss_mech_iakerb, mech_type)) {
         *minor_status = 0;
         return(GSS_S_BAD_MECH);
     }