]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
krb5/name_to_level: replace checkprefix with curl_strequal
authorHarry Sintonen <sintonen@iki.fi>
Sun, 2 May 2021 21:13:41 +0000 (00:13 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 3 May 2021 14:35:27 +0000 (16:35 +0200)
Closes #6993

lib/krb5.c

index fe07d5267e26a1bd7f1801bbd30db31ad9605d19..4d1102da3602c764e706c06a2070d77ce3896526 100644 (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;
 }