krb5/name_to_level: replace checkprefix with curl_strequal

Closes #6993
This commit is contained in:
Harry Sintonen 2021-05-03 00:13:41 +03:00 committed by Daniel Stenberg
parent 6201f5c699
commit 5af7a48668
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ name_to_level(const char *name)
{
int i;
for(i = 0; i < (int)sizeof(level_names)/(int)sizeof(level_names[0]); i++)
if(checkprefix(name, level_names[i].name))
if(curl_strequal(name, level_names[i].name))
return level_names[i].level;
return PROT_NONE;
}