summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2024-03-14 17:22:14 +0100
committerPhil Sutter <phil@nwl.cc>2024-04-11 01:27:07 +0200
commit104b83489d96642752e774c59e54e816dee85f26 (patch)
tree31074c0cc6c1d72cd80a185476b6cabd6093ea39 /src
parent62db596bf1f3dabffac3e0b9b0c3db487bfff828 (diff)
chain: Validate NFTNL_CHAIN_USE, too
Fixes: 53c0ff324598c ("src: add nft_*_attr_{set|get}_data interface") Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'src')
-rw-r--r--src/chain.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/chain.c b/src/chain.c
index dcfcd04..e0b1eaf 100644
--- a/src/chain.c
+++ b/src/chain.c
@@ -196,6 +196,7 @@ static uint32_t nftnl_chain_validate[NFTNL_CHAIN_MAX + 1] = {
[NFTNL_CHAIN_HOOKNUM] = sizeof(uint32_t),
[NFTNL_CHAIN_PRIO] = sizeof(int32_t),
[NFTNL_CHAIN_POLICY] = sizeof(uint32_t),
+ [NFTNL_CHAIN_USE] = sizeof(uint32_t),
[NFTNL_CHAIN_BYTES] = sizeof(uint64_t),
[NFTNL_CHAIN_PACKETS] = sizeof(uint64_t),
[NFTNL_CHAIN_HANDLE] = sizeof(uint64_t),