1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 08:38:49 -05:00

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

View File

@ -402,7 +402,7 @@ name_to_level(const char *name)
{ {
int i; int i;
for(i = 0; i < (int)sizeof(level_names)/(int)sizeof(level_names[0]); 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 level_names[i].level;
return PROT_NONE; return PROT_NONE;
} }