]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: fix nft flush operation
authorEric Leblond <eric@regit.org>
Wed, 2 Oct 2013 23:08:08 +0000 (01:08 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 3 Oct 2013 10:41:31 +0000 (12:41 +0200)
commit8bd599c66b05c4b8bba2564b3f4cd77e719a660c
treeb79a723552de04ab961201b94fe504332e032df9
parent80d48113ed2d9d1426070405dc8ad6ed896e98f2
netlink: fix nft flush operation

nft_netlink function is already calling mnl_batch_end and
mnl_batch_begin so it is not necessary to do it in the
netlink_flush_rules function. Doing this result in a invalid
netlink message which is discarded by the kernel.

Signed-off-by: Eric Leblond <eric@regit.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink.c