]> git.ipfire.org Git - thirdparty/nftables.git/commit
rule: fix segmentation faults on kernels without nftables support
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Dec 2014 19:03:42 +0000 (20:03 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 9 Dec 2014 18:12:21 +0000 (19:12 +0100)
commit100ca4356c4a97655cbdf1d433ae1ac159514daa
tree4a94074c8dc5e2d8e02a9608757293ab7ad0af50
parentf874c2935bb790be378d7916ee426baa1a228603
rule: fix segmentation faults on kernels without nftables support

 # nft list sets
 Segmentation fault

 # nft list sets
 <cmdline>:1:1-9: Error: Could not receive sets from kernel: Protocol error
 list sets
 ^^^^^^^^^

Fix same bug in `nft list tables'.

Don't cleanup the table object for these commands since it is NULL.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/rule.c