path: root/iptables/nft-ipv6.c
diff options
authorPablo M. Bermudo Garay <>2017-06-06 00:08:28 +0200
committerPablo Neira Ayuso <>2017-06-06 17:41:33 +0200
commitc49a93f18e03c0935cb209dca14ce438b2d5f9be (patch)
tree34060483440f8605a086284c15a6b01dc7fd7d28 /iptables/nft-ipv6.c
parent79fa7cc2de933a470ce5f148642494c25d08e79f (diff)
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 <>
Diffstat (limited to 'iptables/nft-ipv6.c')
1 files changed, 1 insertions, 1 deletions
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);