summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2013-04-28 10:33:52 +0200
committerThomas Graf <tgraf@suug.ch>2013-04-28 10:33:52 +0200
commit3a6d256da598d2fd9dc20137f208b88295374b67 (patch)
tree58779b6f3ad0224c228777d873aaf0c89d756765
parent37f788f3918cd03e6b1099078e8aef24e07d5462 (diff)
attr: Fix typo in nla_is_nested()
Signed-off-by: Thomas Graf <tgraf@suug.ch>
-rw-r--r--lib/attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/attr.c b/lib/attr.c
index 14552c6..6fc6af5 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->nla_type & NLA_F_NESTED);
+ return !!(attr->nla_type & NLA_F_NESTED);
}
/** @} */