]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: netlink: fix crash when ops doesn't support udata
authorFlorian Westphal <fw@strlen.de>
Thu, 8 May 2025 14:29:04 +0000 (16:29 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 13 Aug 2025 16:57:06 +0000 (18:57 +0200)
commit49806973277de9d89e890a0f352bae7f0d0ea92d
treee676dcb50de1b2afa7295c2cbf209960c4bedb73
parent1c1a84e987d25a8bf6a804492d7e9fd0c225e7df
src: netlink: fix crash when ops doesn't support udata

commit be737a1986bfee0ddea4bee7863dca0123a2bcbc upstream.

Whenever a new version adds udata support to an expression, then old
versions of nft will crash when trying to list such a ruleset generated
by a more recent version of nftables.

Fix this by falling back to 'type' format.

Fixes: 6e48df5329ea ('src: add "typeof" build/parse/print support')
Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink.c