From b50a36bf34e7452377ab9bbb4d1873b68c65bf72 Mon Sep 17 00:00:00 2001 From: Samuel Gauthier Date: Fri, 29 Nov 2013 09:28:44 +0100 Subject: [PATCH] The commit 6a8d90f5fec4 "attr: Allow attribute type 0" intended to allow the parsing of {netlink,packet,unix}_diag, even if they are using type 0 for valid attributes. It lacked this part in nla_parse. Cc: Nicolas Dichtel Signed-off-by: Samuel Gauthier Signed-off-by: Thomas Graf --- lib/attr.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/attr.c b/lib/attr.c index e83aca2..66c029c 100644 --- a/lib/attr.c +++ b/lib/attr.c @@ -250,10 +250,6 @@ 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); - /* Padding attributes */ - if (type == 0) - continue; - if (type > maxtype) continue;