diff options
author | Phil Sutter <phil@nwl.cc> | 2024-03-14 17:28:15 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2024-04-11 01:27:07 +0200 |
commit | 899920d66b7b2a11c381a95a65b059ff12b9afd6 (patch) | |
tree | 1d0fb2174afff7e9f3838cce97b76131b7d365b8 | |
parent | b8a502b359221c6fb9c35618550364e2ebf116fb (diff) |
obj: Validate NFTNL_OBJ_TYPE, too
Fixes: 5573d0146c1ae ("src: support for stateful objects")
Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r-- | src/object.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/object.c b/src/object.c index 0814be7..d3bfd16 100644 --- a/src/object.c +++ b/src/object.c @@ -98,6 +98,7 @@ void nftnl_obj_unset(struct nftnl_obj *obj, uint16_t attr) } static uint32_t nftnl_obj_validate[NFTNL_OBJ_MAX + 1] = { + [NFTNL_OBJ_TYPE] = sizeof(uint32_t), [NFTNL_OBJ_FAMILY] = sizeof(uint32_t), [NFTNL_OBJ_USE] = sizeof(uint32_t), [NFTNL_OBJ_HANDLE] = sizeof(uint64_t), |