krb5: Correctly check if RC4 enctype is valid

krb5_enctype_valid() returns zero on success.
This commit is contained in:
Jennifer Sutton
2026-03-24 14:42:07 +13:00
committed by Nico Williams
parent dafc36e26c
commit f93aeb3f8f
+1 -1
View File
@@ -1116,7 +1116,7 @@ krb5_kerberos_enctypes(krb5_context context)
ETYPE_NULL
};
if (krb5_enctype_valid(context, ETYPE_ARCFOUR_HMAC_MD5))
if (krb5_enctype_valid(context, ETYPE_ARCFOUR_HMAC_MD5) == 0)
return weak;
return strong;