diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-09-19 18:15:17 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-09-20 17:52:13 +0200 |
commit | 2d9e23a9e9c3c729784a3add41639cbd3f72d504 (patch) | |
tree | efccb7e9c043a9df4416695a055ba8024d687a91 /src/ct.c | |
parent | 1b235f9962a059a599d9a9ecce477ed71e328e89 (diff) |
datatype: initialize TYPE_CT_EVENTBIT slot in datatype array
Matching on ct event makes no sense since this is mostly used as
statement to globally filter out ctnetlink events, but do not crash
if it is used from concatenations.
Add the missing slot in the datatype array so this does not crash.
Fixes: 2595b9ad6840 ("ct: add conntrack event mask support")
Reported-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/ct.c')
-rw-r--r-- | src/ct.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -132,7 +132,7 @@ static const struct symbol_table ct_events_tbl = { }, }; -static const struct datatype ct_event_type = { +const struct datatype ct_event_type = { .type = TYPE_CT_EVENTBIT, .name = "ct_event", .desc = "conntrack event bits", |