summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArturo Borrero <arturo.borrero.glez@gmail.com>2013-09-04 18:03:25 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-09-05 10:51:34 +0200
commit3e62695bb13452e5d4dd671aa9d95e225bfe7fbb (patch)
tree11d54fd1622a1866cbc5b15e8e0325f669f27306
parenteed0f8c21679524b449cdb9c5e686a0dbc99158f (diff)
set: xml: fix key_type parsing
Bug introduced by myself at 44928cd5 [set: add XML parsing] Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--src/set.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/set.c b/src/set.c
index 1168b54..fe30e77 100644
--- a/src/set.c
+++ b/src/set.c
@@ -458,7 +458,7 @@ static int nft_set_xml_parse(struct nft_set *s, const char *xml)
s->flags |= (1 << NFT_SET_ATTR_KEY_TYPE);
if (nft_mxml_num_parse(tree, "key_len", MXML_DESCEND_FIRST,
- BASE_DEC, &s->key_type, NFT_TYPE_U32) != 0)
+ BASE_DEC, &s->key_len, NFT_TYPE_U32) != 0)
goto err;
s->flags |= (1 << NFT_SET_ATTR_KEY_LEN);