]> granicus.if.org Git - libnl/commitdiff
attr: Fix typo in nla_is_nested()
authorThomas Graf <tgraf@suug.ch>
Sun, 28 Apr 2013 08:33:52 +0000 (10:33 +0200)
committerThomas Graf <tgraf@suug.ch>
Sun, 28 Apr 2013 08:33:52 +0000 (10:33 +0200)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
lib/attr.c

index 14552c6d936202f625cbbd56bff089a5b938f716..6fc6af55c26ba26ef4fd802dbcd3b120d87b5f71 100644 (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->nla_type & NLA_F_NESTED);
+       return !!(attr->nla_type & NLA_F_NESTED);
 }
 
 /** @} */