Skip to contentSkip to conversation

xml: expr: limit: fix wrong assignation when parsing

PATCH Applied Arturo Borrero Gonzalez 2 participants 2 messages Aug 12, 2013 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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).

---

 0 files changed
src/expr/limit.c +1 -1
index 9f20c38..336bdb0 100644
@@ -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);
maintainer Applied
#1 lore raw
Quoted 4 lines · Arturo Borrero Gonzalez

This assignation was wrong.

Introduced at commit e13819c
(src: xml: consolidate common XML code via nft_mxml_num_parse).

Applied, thanks.