]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Should be a case insensitive match too
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 9 Feb 2023 03:01:09 +0000 (21:01 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 9 Feb 2023 03:01:09 +0000 (21:01 -0600)
src/lib/server/module_rlm.c

index 97d70fd8c08a12112f38825014bfaf8d12f8e747..c1e254c702811478803a49b4071cdce59716000d 100644 (file)
@@ -721,7 +721,7 @@ module_instance_t *module_rlm_by_name_and_method(module_method_t *method, UNUSED
                /*
                 *      If name1 doesn't match, skip it.
                 */
-               if (strncmp(methods->name1, p, len) != 0) continue;
+               if (strncasecmp(methods->name1, p, len) != 0) continue;
 
                /*
                 *      It may have been a partial match, like "rec",