]> 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)
committerFlorian Westphal <fw@strlen.de>
Sun, 11 May 2025 19:29:34 +0000 (21:29 +0200)
commitbe737a1986bfee0ddea4bee7863dca0123a2bcbc
treebbcc2696120e034c4cd1d640595baaee4336da2a
parent0a500c710e9807d622533062747dae80d1e5b235
src: netlink: fix crash when ops doesn't support udata

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