From: Pablo Neira Ayuso Date: Tue, 30 Aug 2016 15:24:46 +0000 (+0200) Subject: set: fix incorrect maximum set description attribute X-Git-Tag: libnftnl-1.0.7~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4afde4452c2eb450a7febd19c417a41661962d59;p=thirdparty%2Flibnftnl.git 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 --- diff --git a/src/set.c b/src/set.c index 47b6ef46..4581e3fe 100644 --- a/src/set.c +++ b/src/set.c @@ -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) {