diff options
author | Phil Sutter <phil@nwl.cc> | 2017-09-28 17:17:43 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-09-29 12:37:44 +0200 |
commit | 89122493a39f76a530ee0db862986d63b9186e83 (patch) | |
tree | 8f9712a786feb0cc625bd3f2fdf6513a6b997c19 /src/erec.c | |
parent | 9c4747d04075ad1e79aa0f346e7227a43e72405e (diff) |
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>
Diffstat (limited to 'src/erec.c')
-rw-r--r-- | src/erec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -153,7 +153,7 @@ void erec_print(FILE *f, const struct error_record *erec, fprintf(f, "%s\n", erec->msg); for (l = 0; l < (int)erec->num_locations; l++) { loc = &erec->locations[l]; - netlink_dump_expr(loc->nle, debug_mask); + netlink_dump_expr(loc->nle, f, debug_mask); } fprintf(f, "\n"); } else { |