From c49a93f18e03c0935cb209dca14ce438b2d5f9be Mon Sep 17 00:00:00 2001 From: "Pablo M. Bermudo Garay" Date: Tue, 6 Jun 2017 00:08:28 +0200 Subject: xtables-translate: fix double space before comment When a comment translation immediately follows a counter statement, two spaces are printed between "counter" and "comment" keywords. The counter statement is almost always followed by a target, so we need to move the space following "counter" to the beginning of the target translation. Signed-off-by: Pablo M. Bermudo Garay Signed-off-by: Pablo Neira Ayuso --- iptables/nft-ipv6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iptables/nft-ipv6.c') diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c index 9cf4058f..53526369 100644 --- a/iptables/nft-ipv6.c +++ b/iptables/nft-ipv6.c @@ -437,7 +437,7 @@ static int nft_ipv6_xlate(const void *data, struct xt_xlate *xl) return ret; /* Always add counters per rule, as in iptables */ - xt_xlate_add(xl, "counter "); + xt_xlate_add(xl, "counter"); ret = xlate_action(cs, !!(cs->fw6.ipv6.flags & IP6T_F_GOTO), xl); comment = xt_xlate_get_comment(xl); -- cgit v1.2.3