From: Arran Cudbard-Bell Date: Fri, 29 Oct 2021 03:59:46 +0000 (-0400) Subject: All other table match functions are case insensitive X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6afabe1e7b60e84c50f66aea9cb669c4f683cf16;p=thirdparty%2Ffreeradius-server.git All other table match functions are case insensitive --- diff --git a/src/lib/util/table.c b/src/lib/util/table.c index ba32bad614b..29824107398 100644 --- a/src/lib/util/table.c +++ b/src/lib/util/table.c @@ -406,7 +406,8 @@ static void const *table_ordered_value_by_longest_prefix(size_t *match_len, offset = TABLE_IDX(table, i, element_size); - for (j = 0; (j < (size_t)name_len) && (j < ELEM_LEN(offset)) && (name[j] == (ELEM_STR(offset))[j]); j++); + for (j = 0; (j < (size_t)name_len) && (j < ELEM_LEN(offset)) && + (tolower(name[j]) == tolower((ELEM_STR(offset))[j])); j++); /* * If we didn't get to the end of the