cleanup
[mech_eap.orig] / inquire_names_for_mech.c
index 8ceaa89..7217e33 100644 (file)
  * SUCH DAMAGE.
  */
 
+/*
+ * Return supported name OID types.
+ */
+
 #include "gssapiP_eap.h"
 
 OM_uint32
@@ -50,7 +54,7 @@ gss_inquire_names_for_mech(OM_uint32 *minor,
     size_t i;
 
     if (!gssEapIsMechanismOid(mechanism)) {
-        *minor = 0;
+        *minor = GSSEAP_WRONG_MECH;
         return GSS_S_BAD_MECH;
     }