Skip to contentSkip to conversation

rule: fix table flag not being set at XML parsing

PATCH Applied Arturo Borrero 2 participants 2 messages May 28, 2013 – May 29, 2013 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rule: fix table flag not being set at XML parsing

This bug was introduced by me at commit:

	'src: add support for XML parsing'
	51370f0eedb1c8167ab2c340d2a53f0d9f02509c
---
 src/rule.c |    1 +
 1 file changed, 1 insertion(+)
src/rule.c +1 -0
index 318ae07..4d56d5a 100644
@@ -479,6 +479,7 @@ static int nft_rule_xml_parse(struct nft_rule *r, char *xml)
 		free(r->table);
 
 	r->table = strdup(mxmlElementGetAttr(tree, "table"));
+	r->flags |= (1 << NFT_RULE_ATTR_TABLE);
 
 	/* get and set <rule ... chain=X ...> */
 	if (mxmlElementGetAttr(tree, "chain") == NULL) {
maintainer Applied
#1 lore raw
Quoted 4 lines · Arturo Borrero

This bug was introduced by me at commit:

	'src: add support for XML parsing'
	51370f0eedb1c8167ab2c340d2a53f0d9f02509c

Applied, thanks.