]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
parser_bison: missing close scope in destroy start condition
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 22 Feb 2023 13:40:51 +0000 (14:40 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 22 Feb 2023 13:41:20 +0000 (14:41 +0100)
base_cmd production is missing this, add it.

Fixes: f79c7a531744 ("src: use start condition with new destroy command")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/parser_bison.y

index 043909d082ca24dbb12cd6be88f47cad51d8820e..824e5db8ad90cc78a718eb9f645547012d42c535 100644 (file)
@@ -1105,7 +1105,7 @@ base_cmd          :       /* empty */     add_cmd         { $$ = $1; }
                        |       EXPORT          export_cmd      close_scope_export      { $$ = $2; }
                        |       MONITOR         monitor_cmd     close_scope_monitor     { $$ = $2; }
                        |       DESCRIBE        describe_cmd    { $$ = $2; }
-                       |       DESTROY         destroy_cmd     { $$ = $2; }
+                       |       DESTROY         destroy_cmd     close_scope_destroy     { $$ = $2; }
                        ;
 
 add_cmd                        :       TABLE           table_spec