summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2011-08-26 14:46:40 +0200
committerJan Engelhardt <jengelh@medozas.de>2011-08-26 14:46:40 +0200
commitd51a97bc52ee81a962b761c7e58a5eb9f07a2c8a (patch)
tree7939de79e2b93bb676ecb266bc15260defd4378f /extensions
parentf643eb37e49a212d40eb060bcdfafbc366c0d616 (diff)
libxt_string: escape the escaping char too
References: http://bugzilla.netfilter.org/show_bug.cgi?id=740 Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/libxt_string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/libxt_string.c b/extensions/libxt_string.c
index 472035fb..fb15980e 100644
--- a/extensions/libxt_string.c
+++ b/extensions/libxt_string.c
@@ -242,7 +242,7 @@ print_string(const char *str, const unsigned short int len)
unsigned int i;
printf(" \"");
for (i=0; i < len; i++) {
- if (str[i] == '\"') /* escape any embedded quotes */
+ if (str[i] == '\"' || str[i] == '\\')
putchar('\\');
printf("%c", (unsigned char) str[i]);
}