redir: fix snprintf to return the number of bytes printed
PATCH 1/1 redir: fix snprintf to return the number of bytes printed
From: Balazs Scheidler <[email protected]>
This fixes --debug netlink output when a redir target is included.
Signed-off-by Balazs Scheidler <[email protected]>
--- src/expr/redir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/expr/redir.c +1 -1
@@ -223,7 +223,7 @@ static int nft_rule_expr_redir_snprintf_default(char *buf, size_t len,SNPRINTF_BUFFER_SIZE (ret, size, len, offset); } -return 0 ; +return offset; } static int
Signature · 1 line
2.1.0
Quoted 3 lines · On Fri, Jun 26, 2015 at 11:57:53AM +0200, [email protected] wrote:
From: Balazs Scheidler <[email protected]>
This fixes --debug netlink output when a redir target is included.
Applied to libnftnl, thanks Balazs.