* [PATCH] redir: fix snprintf to return the number of bytes printed
@ 2015-06-26 9:57 balazs.scheidler
2015-06-30 0:04 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: balazs.scheidler @ 2015-06-26 9:57 UTC (permalink / raw)
To: netfilter-devel; +Cc: Balazs Scheidler
From: Balazs Scheidler <balazs.scheidler@balabit.com>
This fixes --debug netlink output when a redir target is included.
Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
---
src/expr/redir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/expr/redir.c b/src/expr/redir.c
index b6adf88..69bd94f 100644
--- a/src/expr/redir.c
+++ b/src/expr/redir.c
@@ -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
--
2.1.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] redir: fix snprintf to return the number of bytes printed
2015-06-26 9:57 [PATCH] redir: fix snprintf to return the number of bytes printed balazs.scheidler
@ 2015-06-30 0:04 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2015-06-30 0:04 UTC (permalink / raw)
To: balazs.scheidler; +Cc: netfilter-devel
On Fri, Jun 26, 2015 at 11:57:53AM +0200, balazs.scheidler@balabit.com wrote:
> From: Balazs Scheidler <balazs.scheidler@balabit.com>
>
> This fixes --debug netlink output when a redir target is included.
Applied to libnftnl, thanks Balazs.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-29 23:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-26 9:57 [PATCH] redir: fix snprintf to return the number of bytes printed balazs.scheidler
2015-06-30 0:04 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).