diff --git a/libclamav/yara_grammar.c b/libclamav/yara_grammar.c index 2f896c2382..1a31398681 100644 --- a/libclamav/yara_grammar.c +++ b/libclamav/yara_grammar.c @@ -3649,6 +3649,8 @@ YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); } # undef YYSYNTAX_ERROR #endif + /*Exit out, no reason to continue parsing, since we have already found errors.*/ + goto yyreturn; }