]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables-translate: fix double space before comment
authorPablo M. Bermudo Garay <pablombg@gmail.com>
Mon, 5 Jun 2017 22:08:28 +0000 (00:08 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 6 Jun 2017 15:41:33 +0000 (17:41 +0200)
commitc49a93f18e03c0935cb209dca14ce438b2d5f9be
tree34060483440f8605a086284c15a6b01dc7fd7d28
parent79fa7cc2de933a470ce5f148642494c25d08e79f
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>
iptables/nft-ipv4.c
iptables/nft-ipv6.c
iptables/xtables-translate.c