diff options
author | Pablo M. Bermudo Garay <pablombg@gmail.com> | 2017-06-06 00:08:28 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-06-06 17:41:33 +0200 |
commit | c49a93f18e03c0935cb209dca14ce438b2d5f9be (patch) | |
tree | 34060483440f8605a086284c15a6b01dc7fd7d28 /iptables/nft-ipv4.c | |
parent | 79fa7cc2de933a470ce5f148642494c25d08e79f (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 <pablombg@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft-ipv4.c')
-rw-r--r-- | iptables/nft-ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-ipv4.c b/iptables/nft-ipv4.c index e5947a7c..cf311513 100644 --- a/iptables/nft-ipv4.c +++ b/iptables/nft-ipv4.c @@ -488,7 +488,7 @@ static int nft_ipv4_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->fw.ip.flags & IPT_F_GOTO), xl); comment = xt_xlate_get_comment(xl); |