]> git.ipfire.org Git - thirdparty/libnftnl.git/commitdiff
chain: Validate NFTNL_CHAIN_USE, too
authorPhil Sutter <phil@nwl.cc>
Thu, 14 Mar 2024 16:22:14 +0000 (17:22 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 10 Apr 2024 23:27:07 +0000 (01:27 +0200)
Fixes: 53c0ff324598c ("src: add nft_*_attr_{set|get}_data interface")
Signed-off-by: Phil Sutter <phil@nwl.cc>
src/chain.c

index dcfcd0456734b10894fe9db92ec1683c5e087e8e..e0b1eaf6d73bca2abd593abcd4456f0bc06f44a8 100644 (file)
@@ -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),