Issue 282: fix tolower_ascii in lib/krb5/principal.c.

This commit is contained in:
Roland C. Dowdeswell
2017-05-16 12:32:54 -04:00
committed by Nico Williams
parent 6f3ab01c75
commit e65db603bf

View File

@@ -1250,7 +1250,7 @@ krb5_principal_is_root_krbtgt(krb5_context context, krb5_const_principal p)
static int
tolower_ascii(int c)
{
if (c >= 'A' || c <= 'Z')
if (c >= 'A' && c <= 'Z')
return 'a' + (c - 'A');
return c;
}