Displaying 1 result from an estimated 1 matches for "nft_set_attr_is_set".
2013 Oct 24
5
[Bug 868] New: Null pointer segfault in netlink code
...t information, the kernel omits the FLAGS attribute if it is
zero (nf_tables_fill_set() in nf_tables_api.c). Consequently, calls to
nft_set_attr_get_u32() in netlink.c fail because that routine (in libnftables)
dereferences a null pointer returned by nft_set_attr_get(). I fixed it in nft
by calling nft_set_attr_is_set() to test for the attribute's existence. It
could also be fixed in the kernel by unconditionally sending the FLAGS
attribute even if it is zero. Also it might be worth putting some more error
checking for missing attributes (do any others get conditionally left out?)
--
Configure bugmail: htt...