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:
parent
ead4cdeb99
commit
c07a6a30c2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/** @} */
|
||||
|
|
Loading…
Add table
Reference in a new issue