]> git.ipfire.org Git - thirdparty/libnftnl.git/commitdiff
table: Validate NFTNL_TABLE_OWNER, too
authorPhil Sutter <phil@nwl.cc>
Thu, 14 Mar 2024 16:30:30 +0000 (17:30 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 10 Apr 2024 23:27:07 +0000 (01:27 +0200)
Fixes: 985955fe41f53 ("table: add table owner support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
src/table.c

index 4a439ff5ab996fd298f81bc1f6f6a070ac4700fc..4f48e8c9e73e10e73433887cf404b07df8c8b917 100644 (file)
@@ -89,6 +89,7 @@ static uint32_t nftnl_table_validate[NFTNL_TABLE_MAX + 1] = {
        [NFTNL_TABLE_FAMILY]    = sizeof(uint32_t),
        [NFTNL_TABLE_HANDLE]    = sizeof(uint64_t),
        [NFTNL_TABLE_USE]       = sizeof(uint32_t),
+       [NFTNL_TABLE_OWNER]     = sizeof(uint32_t),
 };
 
 EXPORT_SYMBOL(nftnl_table_set_data);