In gss_inquire_attrs_for_mech, remove the assumption that mech_attrs
authorGreg Hudson <ghudson@mit.edu>
Fri, 8 Oct 2010 14:57:58 +0000 (14:57 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 8 Oct 2010 14:57:58 +0000 (14:57 +0000)
!= NULL in a particular error case.

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

src/lib/gssapi/mechglue/g_mechattr.c

index 63ec35768acc1aa387ac11f416eb70e4595f68bb..d23f32664d568c27dccaa176485172ddb6052e04 100644 (file)
@@ -205,7 +205,8 @@ OM_uint32 gss_inquire_attrs_for_mech(
                                           known_mech_attrs);
         if (GSS_ERROR(status)) {
             gss_release_oid_set(&tmpMinor, mech_attrs);
-            *mech_attrs = GSS_C_NO_OID_SET;
+            if (mech_attrs != NULL)
+                *mech_attrs = GSS_C_NO_OID_SET;
         }
     }