dect
/
libnl
Archived
13
0
Fork 0

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 <tgraf@suug.ch>
This commit is contained in:
Thomas Graf 2013-04-28 10:23:28 +02:00
parent ead4cdeb99
commit c07a6a30c2
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
/** @} */