From: Thomas Graf Date: Sun, 28 Apr 2013 08:23:28 +0000 (+0200) Subject: attr: nla_is_nested() must access nla_type directly X-Git-Tag: libnl3_2_22rc1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c07a6a30c2c3219795aada01ade65c09e8fb41a3;p=thirdparty%2Flibnl.git attr: nla_is_nested() must access nla_type directly Can't used nla_type() as it applies NLA_TYPE_MASK first Signed-off-by: Thomas Graf --- diff --git a/lib/attr.c b/lib/attr.c index e6efe4e..14552c6 100644 --- a/lib/attr.c +++ b/lib/attr.c @@ -899,7 +899,7 @@ int nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla, */ int nla_is_nested(struct nlattr *attr) { - return !!(nla_type(attr) & NLA_F_NESTED); + return !!(nla->nla_type & NLA_F_NESTED); } /** @} */