diff --git a/src/charon/sa/authenticators/eap/eap_method.c b/src/charon/sa/authenticators/eap/eap_method.c index 493ce3af8..f814695e8 100644 --- a/src/charon/sa/authenticators/eap/eap_method.c +++ b/src/charon/sa/authenticators/eap/eap_method.c @@ -58,7 +58,7 @@ eap_type_t eap_type_from_string(char *name) for (i = 0; i < countof(types); i++) { - if (strcasecmp(name, types[i].name)) + if (strcaseeq(name, types[i].name)) { return types[i].type; }