krb5: Correctly check if RC4 enctype is valid
krb5_enctype_valid() returns zero on success.
This commit is contained in:
committed by
Nico Williams
parent
dafc36e26c
commit
f93aeb3f8f
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user