From d51a97bc52ee81a962b761c7e58a5eb9f07a2c8a Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 26 Aug 2011 14:46:40 +0200 Subject: libxt_string: escape the escaping char too References: http://bugzilla.netfilter.org/show_bug.cgi?id=740 Signed-off-by: Jan Engelhardt --- extensions/libxt_string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions') 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]); } -- cgit v1.2.3