diff --git a/server/modules/routing/avrorouter/avro_schema.c b/server/modules/routing/avrorouter/avro_schema.c index 45360ae71..76c72bfd2 100644 --- a/server/modules/routing/avrorouter/avro_schema.c +++ b/server/modules/routing/avrorouter/avro_schema.c @@ -1273,7 +1273,7 @@ static bool token_is_keyword(const char* tok, int len) { for (int i = 0; keywords[i]; i++) { - if (strncasecmp(keywords[i], tok, len) == 0) + if (strncasecmp(keywords[i], tok, len) == 0 && strlen(keywords[i]) == len) { return true; }