diff options
author | Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> | 2013-05-28 05:06:08 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-05-29 14:03:52 +0200 |
commit | 7aa7ba3a3f274109b81f9f1109c9ba49567f0e20 (patch) | |
tree | 6fcd483ef5e596c3cb4a21215cd7c811fa13ed0a /src | |
parent | 85b4fe5c9097461a203a3f4996801b9e0ee62db4 (diff) |
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 <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/rule.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |