]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: fix buffer size for user data in netlink_delinearize_chain()
authorThomas Haller <thaller@redhat.com>
Wed, 8 Nov 2023 18:22:20 +0000 (19:22 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 9 Nov 2023 16:25:48 +0000 (17:25 +0100)
commit505a6794422238f9f1d590fe8c1ee3ea7fd46579
treef98657b6688d1c736067e1f56620113c01f9cd6e
parentd7af8ab26d62e602b73e1017183f899923d8d5ae
netlink: fix buffer size for user data in netlink_delinearize_chain()

The correct define is NFTNL_UDATA_CHAIN_MAX and not NFTNL_UDATA_OBJ_MAX.
In current libnftnl, they both are defined as 1, so (with current libnftnl)
there is no difference.

Fixes: 702ac2b72c0e ("src: add comment support for chains")
Signed-off-by: Thomas Haller <thaller@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink.c