summaryrefslogtreecommitdiffstats
path: root/include/parser.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2022-10-07 09:55:59 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2022-10-07 09:55:59 +0200
commit4429334ea61864ea8d2636e2daadc1e05967552d (patch)
treec53de53afc86ddee2f9ac79179e0755390b4fbf5 /include/parser.h
parente780df8fcceeb5b8fbcbd5d965bb07124ed7da2d (diff)
parser_bison: display too many levels of nesting error
Instead of hitting this assertion: nft: parser_bison.y:70: open_scope: Assertion `state->scope < array_size(state->scopes) - 1' failed. Aborted this is easier to trigger with implicit chains where one level of nesting from the existing chain scope is supported. Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1615 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/parser.h')
-rw-r--r--include/parser.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/parser.h b/include/parser.h
index 2fb037cb..f55da0fd 100644
--- a/include/parser.h
+++ b/include/parser.h
@@ -22,6 +22,7 @@ struct parser_state {
struct scope *scopes[SCOPE_NEST_MAX];
unsigned int scope;
+ bool scope_err;
unsigned int flex_state_pop;
unsigned int startcond_type;