summaryrefslogtreecommitdiffstats
path: root/src/parser_bison.y
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2023-12-12 10:44:35 +0100
committerFlorian Westphal <fw@strlen.de>2023-12-12 16:33:18 +0100
commitd5a06af393eaf47571c884a265d1f6e6ba34ed97 (patch)
tree23fac2b8ce25d2f964d270c9ce8d3552fd7e40fb /src/parser_bison.y
parentd07c874797295f425541464ac84864e591fc0614 (diff)
parser_bison: make sure obj_free releases timeout policies
obj_free() won't release them because ->type is still 0 at this point. Init this to CT_TIMEOUT. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/parser_bison.y')
-rw-r--r--src/parser_bison.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser_bison.y b/src/parser_bison.y
index 70acfc57..d13fb961 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -2513,6 +2513,7 @@ ct_timeout_block : /*empty */
{
$$ = $<obj>-1;
init_list_head(&$$->ct_timeout.timeout_list);
+ $$->type = NFT_OBJECT_CT_TIMEOUT;
}
| ct_timeout_block common_block
| ct_timeout_block stmt_separator