summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2014-11-10 13:57:54 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2014-11-10 18:42:36 +0100
commit88e823f8dcb24b5201f2fe4f4d5ec5d277bd24b2 (patch)
tree9a715c946e1ad0d03bbd8da0b12f3d7f3168b2e4 /src
parent1d4a4808bb967532a30230f1957236586ab6f2b6 (diff)
expr: nat: use 'nat_type' instead of 'type' in the parser
'type' is already used from the expression. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r--src/expr/nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr/nat.c b/src/expr/nat.c
index 811286c..60623a6 100644
--- a/src/expr/nat.c
+++ b/src/expr/nat.c
@@ -284,7 +284,7 @@ static int nft_rule_expr_nat_xml_parse(struct nft_rule_expr *e, mxml_node_t *tre
uint32_t reg_addr_min, reg_addr_max;
uint32_t reg_proto_min, reg_proto_max;
- nat_type = nft_mxml_str_parse(tree, "type", MXML_DESCEND_FIRST,
+ nat_type = nft_mxml_str_parse(tree, "nat_type", MXML_DESCEND_FIRST,
NFT_XML_MAND, err);
if (nat_type == NULL)
return -1;