]> git.ipfire.org Git - thirdparty/libnftnl.git/commitdiff
flowtable: Validate NFTNL_FLOWTABLE_SIZE, too
authorPhil Sutter <phil@nwl.cc>
Thu, 14 Mar 2024 16:26:33 +0000 (17:26 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 10 Apr 2024 23:27:07 +0000 (01:27 +0200)
Fixes: cdaea7f1ced05 ("flowtable: allow to specify size")
Signed-off-by: Phil Sutter <phil@nwl.cc>
src/flowtable.c

index e6c24753525c8b4a825ae5d50ef07ac47fc5abaa..2f37cd4c7f04a659c7e7ec5a2475707bb18bd081 100644 (file)
@@ -102,6 +102,7 @@ static uint32_t nftnl_flowtable_validate[NFTNL_FLOWTABLE_MAX + 1] = {
        [NFTNL_FLOWTABLE_HOOKNUM]       = sizeof(uint32_t),
        [NFTNL_FLOWTABLE_PRIO]          = sizeof(int32_t),
        [NFTNL_FLOWTABLE_FAMILY]        = sizeof(uint32_t),
+       [NFTNL_FLOWTABLE_SIZE]          = sizeof(uint32_t),
        [NFTNL_FLOWTABLE_FLAGS]         = sizeof(uint32_t),
        [NFTNL_FLOWTABLE_HANDLE]        = sizeof(uint64_t),
 };