summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libxt_helper.c')
-rw-r--r--extensions/libxt_helper.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/extensions/libxt_helper.c b/extensions/libxt_helper.c
index 6860127b..2afbf996 100644
--- a/extensions/libxt_helper.c
+++ b/extensions/libxt_helper.c
@@ -50,8 +50,12 @@ static int helper_xlate(struct xt_xlate *xl,
{
const struct xt_helper_info *info = (const void *)params->match->data;
- xt_xlate_add(xl, "ct helper%s \\\"%s\\\"",
- info->invert ? " !=" : "", info->name);
+ if (params->escape_quotes)
+ xt_xlate_add(xl, "ct helper%s \\\"%s\\\"",
+ info->invert ? " !=" : "", info->name);
+ else
+ xt_xlate_add(xl, "ct helper%s \"%s\"",
+ info->invert ? " !=" : "", info->name);
return 1;
}