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:
@ -1273,7 +1273,7 @@ static bool token_is_keyword(const char* tok, int len)
|
|||||||
{
|
{
|
||||||
for (int i = 0; keywords[i]; i++)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user