From: Thomas Graf Date: Sun, 28 Apr 2013 08:33:52 +0000 (+0200) Subject: attr: Fix typo in nla_is_nested() X-Git-Tag: libnl3_2_22rc1~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a6d256da598d2fd9dc20137f208b88295374b67;p=libnl attr: Fix typo in nla_is_nested() Signed-off-by: Thomas Graf --- 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); } /** @} */