summaryrefslogtreecommitdiffstats
path: root/iptables/nft-ipv6.c
diff options
context:
space:
mode:
authorPablo M. Bermudo Garay <pablombg@gmail.com>2016-08-22 12:56:14 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2016-08-23 14:03:21 +0200
commitb2b811ed4a8261430def40b7d600ccb0f4927492 (patch)
tree5cc5a3e65caafee3c36696d71c632785628ddec8 /iptables/nft-ipv6.c
parent2abd049177fa42993e4b1de588e92282a200ee43 (diff)
xtables-translate: add escape_quotes option to comment_xlate
The comment_xlate function was not supporting this option that is necessary in some situations. Signed-off-by: Pablo M. Bermudo Garay <pablombg@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft-ipv6.c')
-rw-r--r--iptables/nft-ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-ipv6.c b/iptables/nft-ipv6.c
index 8ca523c8..8bebf6be 100644
--- a/iptables/nft-ipv6.c
+++ b/iptables/nft-ipv6.c
@@ -439,7 +439,7 @@ static int nft_ipv6_xlate(const void *data, struct xt_xlate *xl)
comment = xt_xlate_get_comment(xl);
if (comment)
- xt_xlate_add(xl, "comment \\\"%s\\\" ", comment);
+ xt_xlate_add(xl, "comment %s", comment);
ret = xlate_action(cs, !!(cs->fw6.ipv6.flags & IP6T_F_GOTO), xl);