diff options
author | Eric Leblond <eric@regit.org> | 2017-07-11 00:32:52 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-07-17 17:20:34 +0200 |
commit | f1e32ed35429a9890697efabca63dd9c88b55c2e (patch) | |
tree | 8823f5b3e7f979b7e1cad17f5f7c23df215f532a /src/parser_bison.y | |
parent | 07bf0d4a215337fb710cdaa73b1cae3f7a307e96 (diff) |
parser: error if needed at EOF
Signed-off-by: Eric Leblond <eric@regit.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/parser_bison.y')
-rw-r--r-- | src/parser_bison.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y index abc41a6b..03b13720 100644 --- a/src/parser_bison.y +++ b/src/parser_bison.y @@ -760,6 +760,8 @@ line : common_block { $$ = NULL; } } else list_splice_tail(&list, &state->cmds); } + if (state->nerrs) + YYABORT; $$ = NULL; YYACCEPT; |