diff options
author | Phil Sutter <phil@nwl.cc> | 2018-04-10 19:00:21 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-04-11 09:57:28 +0200 |
commit | 4176e24e14f0723486253ebcfd2885c77f82f7b1 (patch) | |
tree | f568b8ff2c2ca0a68e3ef1085e7dcb291a694bb6 /src/erec.c | |
parent | 2b3f18e0cf7a7914b500cf17cc47e5bddb9d6848 (diff) |
libnftables: Introduce nft_ctx_set_error()
Analogous to nft_ctx_set_output(), this allows to set a custom file
pointer for writing error messages to.
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
@@ -124,7 +124,7 @@ void erec_print(struct output_ctx *octx, const struct error_record *erec, unsigned int i, end; int l; off_t orig_offset = 0; - FILE *f = octx->output_fp; + FILE *f = octx->error_fp; if (!f) return; |