diff options
author | Thomas Graf <tgraf@suug.ch> | 2013-04-28 08:23:28 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2013-04-28 08:23:28 (GMT) |
commit | c07a6a30c2c3219795aada01ade65c09e8fb41a3 (patch) | |
tree | 0ca94e4488866f0a811ad5496b8ee72d69dcffdd | |
parent | ead4cdeb99029c6cf3bf85811c3ea32346b41b03 (diff) | |
download | libnl-c07a6a30c2c3219795aada01ade65c09e8fb41a3.zip libnl-c07a6a30c2c3219795aada01ade65c09e8fb41a3.tar.gz libnl-c07a6a30c2c3219795aada01ade65c09e8fb41a3.tar.bz2 |
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>
-rw-r--r-- | lib/attr.c | 2 |
1 files changed, 1 insertions, 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); } /** @} */ |