Issue 282: fix tolower_ascii in lib/krb5/principal.c.
This commit is contained in:

committed by
Nico Williams

parent
6f3ab01c75
commit
e65db603bf
@@ -1250,7 +1250,7 @@ krb5_principal_is_root_krbtgt(krb5_context context, krb5_const_principal p)
|
|||||||
static int
|
static int
|
||||||
tolower_ascii(int c)
|
tolower_ascii(int c)
|
||||||
{
|
{
|
||||||
if (c >= 'A' || c <= 'Z')
|
if (c >= 'A' && c <= 'Z')
|
||||||
return 'a' + (c - 'A');
|
return 'a' + (c - 'A');
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user