From 24e88001d8d77abc42e1c427425d4ef11fbe7f2d Mon Sep 17 00:00:00 2001 From: Arturo Borrero Date: Mon, 12 Aug 2013 09:35:23 +0200 Subject: xml: expr: limit: fix wrong assignation when parsing This assignation was wrong. Introduced at commit e13819c (src: xml: consolidate common XML code via nft_mxml_num_parse). Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- src/expr/limit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/expr/limit.c b/src/expr/limit.c index 9f20c38..336bdb0 100644 --- a/src/expr/limit.c +++ b/src/expr/limit.c @@ -130,7 +130,7 @@ static int nft_rule_expr_limit_xml_parse(struct nft_rule_expr *e, mxml_node_t *t e->flags |= (1 << NFT_EXPR_LIMIT_RATE); if (nft_mxml_num_parse(tree, "depth", MXML_DESCEND_FIRST, BASE_DEC, - &limit->rate, NFT_TYPE_U64) != 0) + &limit->depth, NFT_TYPE_U64) != 0) return -1; e->flags |= (1 << NFT_EXPR_LIMIT_DEPTH); -- cgit v1.2.3