/*
* If name1 doesn't match, skip it.
*/
- if (strcmp(methods->name1, method_name1) != 0) continue;
+ if (strcasecmp(methods->name1, method_name1) != 0) continue;
/*
* The module can declare a
*/
if (!methods->name2 || !method_name2) continue;
- if (strcmp(methods->name2, method_name2) == 0) goto found;
+ if (strcasecmp(methods->name2, method_name2) == 0) goto found;
}
/*
fr_assert(methods->name1 != CF_IDENT_ANY); /* should have been caught above */
- if (strcmp(methods->name1, allowed->name) != 0) continue;
+ if (strcasecmp(methods->name1, allowed->name) != 0) continue;
/*
* The module matches "recv *",
if (!methods->name2 && !allowed->name2) goto found_allowed;
/*
- * Don't do strcmp on NULLs
+ * Don't do strcasecmp on NULLs
*/
if (!methods->name2 || !allowed->name2) continue;
- if (strcmp(methods->name2, allowed->name2) == 0) goto found_allowed;
+ if (strcasecmp(methods->name2, allowed->name2) == 0) goto found_allowed;
}
}
/*
* If name1 doesn't match, skip it.
*/
- if (strcmp(methods->name1, p) != 0) continue;
+ if (strcasecmp(methods->name1, p) != 0) continue;
found_name1:
/*
*/
if (!methods->name2) continue;
- if (strcmp(methods->name2, q) != 0) continue;
+ if (strcasecmp(methods->name2, q) != 0) continue;
found_name2:
/*