summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);