summaryrefslogtreecommitdiffstats
path: root/include/ct.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2023-09-19 18:15:17 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2023-09-20 17:52:13 +0200
commit2d9e23a9e9c3c729784a3add41639cbd3f72d504 (patch)
treeefccb7e9c043a9df4416695a055ba8024d687a91 /include/ct.h
parent1b235f9962a059a599d9a9ecce477ed71e328e89 (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 'include/ct.h')
-rw-r--r--include/ct.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ct.h b/include/ct.h
index aa0504c5..0a705fd0 100644
--- a/include/ct.h
+++ b/include/ct.h
@@ -40,5 +40,6 @@ extern const struct datatype ct_dir_type;
extern const struct datatype ct_state_type;
extern const struct datatype ct_status_type;
extern const struct datatype ct_label_type;
+extern const struct datatype ct_event_type;
#endif /* NFTABLES_CT_H */