iptables-xml: fix parameter parsing (similar to 2165f38)
Similar to (2165f38 iptables-restore: fix parameter parsing
(shows up with gcc-4.7)), make sure iptables-xml doesn't hit
the same problem.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
diff --git a/iptables/iptables-xml.c b/iptables/iptables-xml.c
index e272ef9..9628447 100644
--- a/iptables/iptables-xml.c
+++ b/iptables/iptables-xml.c
@@ -740,6 +740,7 @@
/* the parser */
char *param_start, *curchar;
int quote_open, quoted;
+ char param_buffer[1024];
/* reset the newargv */
newargc = 0;
@@ -799,7 +800,6 @@
}
if (*curchar == ' '
|| *curchar == '\t' || *curchar == '\n') {
- char param_buffer[1024];
int param_len = curchar - param_start;
if (quote_open)