error handling fixes
[mech_eap.orig] / util_oid.c
index 45c37d8..687943d 100644 (file)
@@ -116,7 +116,7 @@ composeOid(OM_uint32 *minor,
     suffix = osuffix;
 
     if (oid->length < prefix_len + nbytes) {
-        *minor = ERANGE;
+        *minor = GSSEAP_WRONG_SIZE;
         return GSS_S_FAILURE;
     }