From 7aa7ba3a3f274109b81f9f1109c9ba49567f0e20 Mon Sep 17 00:00:00 2001 From: Arturo Borrero Gonzalez Date: Tue, 28 May 2013 05:06:08 +0000 Subject: rule: fix table flag not being set at XML parsing Added in (51370f0 src: add support for XML parsing). Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- src/rule.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rule.c') diff --git a/src/rule.c b/src/rule.c index 318ae07..4d56d5a 100644 --- a/src/rule.c +++ b/src/rule.c @@ -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 */ if (mxmlElementGetAttr(tree, "chain") == NULL) { -- cgit v1.2.3