From: Eric Leblond Date: Mon, 10 Jul 2017 22:32:52 +0000 (+0200) Subject: parser: error if needed at EOF X-Git-Tag: v0.8~115 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1e32ed35429a9890697efabca63dd9c88b55c2e;p=thirdparty%2Fnftables.git parser: error if needed at EOF Signed-off-by: Eric Leblond Signed-off-by: Pablo Neira Ayuso --- 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;