* [PATCH parser_bison] parser_bison: proper ct timeout list initialization
@ 2020-04-15 22:01 Pablo Neira Ayuso
0 siblings, 0 replies; only message in thread
From: Pablo Neira Ayuso @ 2020-04-15 22:01 UTC (permalink / raw)
To: netfilter-devel
Initialize list of timeout policies from ct_timeout_block.
Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1403
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
src/parser_bison.y | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/parser_bison.y b/src/parser_bison.y
index 3e8d6bd6d8ca..0e04a0e4fcf0 100644
--- a/src/parser_bison.y
+++ b/src/parser_bison.y
@@ -1992,7 +1992,11 @@ ct_helper_block : /* empty */ { $$ = $<obj>-1; }
}
;
-ct_timeout_block : /*empty */ { $$ = $<obj>-1; }
+ct_timeout_block : /*empty */
+ {
+ $$ = $<obj>-1;
+ init_list_head(&$$->ct_timeout.timeout_list);
+ }
| ct_timeout_block common_block
| ct_timeout_block stmt_separator
| ct_timeout_block ct_timeout_config
@@ -3896,7 +3900,6 @@ ct_timeout_config : PROTOCOL ct_l4protoname stmt_separator
struct ct_timeout *ct;
ct = &$<obj>0->ct_timeout;
- init_list_head(&ct->timeout_list);
list_splice_tail($4, &ct->timeout_list);
}
| L3PROTOCOL family_spec_explicit stmt_separator
--
2.11.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-15 22:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-15 22:01 [PATCH parser_bison] parser_bison: proper ct timeout list initialization Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox