]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: Do not allocate a bogus flowtable priority expr
authorPhil Sutter <phil@nwl.cc>
Wed, 11 Jun 2025 12:15:38 +0000 (14:15 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 12 Jun 2025 20:55:42 +0000 (22:55 +0200)
commit10b9a85b3278e0933bf47226588fede8c9fcbcc8
tree075106fc25833972229aac305723aa7b1ccd2fc0
parentd5ef04441eb1de3efc27aa70193fe3d7f0b5c408
netlink: Do not allocate a bogus flowtable priority expr

Code accidentally treats missing NFTNL_FLOWTABLE_PRIO attribute as zero
prio value which may not be correct.

Fixes: db0697ce7f602 ("src: support for flowtable listing")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink.c