summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/bogons/nft-f/scope_underflow_assert
Commit message (Collapse)AuthorAgeFilesLines
* parser: don't assert on scope underflowsFlorian Westphal2023-06-201-0/+6
close_scope() gets called from the object destructors; imbalance can cause us to hit assert(). Before: nft: parser_bison.y:88: close_scope: Assertion `state->scope > 0' failed. After: assertion3:4:7-7: Error: too many levels of nesting jump { assertion3:5:8-8: Error: too many levels of nesting jump assertion3:5:9-9: Error: syntax error, unexpected newline, expecting '{' assertion3:7:1-1: Error: syntax error, unexpected end of file Signed-off-by: Florian Westphal <fw@strlen.de>