]> git.ipfire.org Git - thirdparty/nftables.git/commit
erec_print: Pass output FILE pointer to netlink_dump_expr()
authorPhil Sutter <phil@nwl.cc>
Thu, 28 Sep 2017 15:17:43 +0000 (17:17 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 29 Sep 2017 10:37:44 +0000 (12:37 +0200)
commit89122493a39f76a530ee0db862986d63b9186e83
tree8f9712a786feb0cc625bd3f2fdf6513a6b997c19
parent9c4747d04075ad1e79aa0f346e7227a43e72405e
erec_print: Pass output FILE pointer to netlink_dump_expr()

It was a bit odd that erec_print() outputs to a given FILE pointer but
then calls netlink_dump_expr() which just prints to stdout. Fix this by
passing the given FILE pointer along so output is guaranteed to go to
the same destination.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/netlink.h
src/erec.c
src/netlink.c