dect
/
libnl
Archived
13
0
Fork 0

attr: No longer warn about attribute of type 0

The kernel will start using type 0 attributes for padding purposes.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
This commit is contained in:
Thomas Graf 2013-03-13 17:07:01 +01:00
parent 60b370de8c
commit 64315f731c
1 changed files with 2 additions and 3 deletions

View File

@ -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) {