Displaying 1 result from an estimated 1 matches for "nft_set_attr_get_u32".
2013 Oct 24
5
[Bug 868] New: Null pointer segfault in netlink code
...Priority: P5
Component: nft
AssignedTo: pablo at netfilter.org
ReportedBy: john at sager.me.uk
Estimated Hours: 0.0
In returning set 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 eve...