Skip to content

Commit

Permalink
iptables-xml: fix parameter parsing (similar to 2165f38)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ummakynes committed Jul 26, 2013
1 parent 68cecd5 commit 20489ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iptables/iptables-xml.c
Expand Up @@ -740,6 +740,7 @@ iptables_xml_main(int argc, char *argv[])
/* the parser */
char *param_start, *curchar;
int quote_open, quoted;
char param_buffer[1024];

/* reset the newargv */
newargc = 0;
Expand Down Expand Up @@ -799,7 +800,6 @@ iptables_xml_main(int argc, char *argv[])
}
if (*curchar == ' '
|| *curchar == '\t' || *curchar == '\n') {
char param_buffer[1024];
int param_len = curchar - param_start;

if (quote_open)
Expand Down

0 comments on commit 20489ff

Please sign in to comment.