set: fix incorrect maximum set description attribute
Pablo Neira Ayuso
maintainerPATCH 1/1 set: fix incorrect maximum set description attribute
Maximum set description attribute is NFTA_SET_DESC_MAX, instead of NFTA_SET_MAX.
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- src/set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/set.c +1 -1
@@ -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