diff options
author | Arturo Borrero <arturo.borrero.glez@gmail.com> | 2014-09-12 21:41:25 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-09-16 19:04:06 +0200 |
commit | 24cfc59f1c3a2108c8a5eb41e898d60b196aee9b (patch) | |
tree | 136b073fd8d57e12e85c20442653c657bb3ac54b /examples/nft-table-del.c | |
parent | 9c3cacb743d789bcac0f9ac8f40190741b9ae8eb (diff) |
utils: nft_fprintf: prevent an empty buffer from being printed
If the snprintf_cb() printed 0 characters, no \0 exists in the buffer.
Also, in that case fprintf() is meant to print nothing, so we can just exit.
This patch addresses new cases of textual output by libnftnl with trash.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/nft-table-del.c')
0 files changed, 0 insertions, 0 deletions