Skip to contentSkip to conversation

set: fix incorrect maximum set description attribute

PATCH New Pablo Neira Ayuso 1 participant 1 message Aug 30, 2016 netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 set: fix incorrect maximum set description attribute

Maximum set description attribute is NFTA_SET_DESC_MAX, instead of NFTA_SET_MAX.

---
 src/set.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/set.c +1 -1
index 47b6ef4..4581e3f 100644
@@ -423,7 +423,7 @@ static int nftnl_set_desc_parse_attr_cb(const struct nlattr *attr, void *data)
 	const struct nlattr **tb = data;
 	int type = mnl_attr_get_type(attr);
 
-	if (mnl_attr_type_valid(attr, NFTA_SET_MAX) < 0)
+	if (mnl_attr_type_valid(attr, NFTA_SET_DESC_MAX) < 0)
 		return MNL_CB_OK;
 
 	switch (type) {
Signature · 1 line
2.1.4