diff --git a/lib/attr.c b/lib/attr.c index 90070df..093ffb5 100644 --- a/lib/attr.c +++ b/lib/attr.c @@ -250,10 +250,9 @@ int nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, int len, nla_for_each_attr(nla, head, len, rem) { int type = nla_type(nla); - if (type == 0) { - NL_DBG(1, "Illegal nla->nla_type == 0\n"); + /* Padding attributes */ + if (type == 0) continue; - } if (type <= maxtype) { if (policy) {