MXS-2507: Fix avrorouter token processing

The token comparison function did the comparison wrong: The token needs to
be an exact match instead of a partial one.
This commit is contained in:
Markus Mäkelä 2019-05-24 14:28:38 +03:00
parent 6e6ab07642
commit 387bf0ccc2
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -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;
}