[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.
Thomas Graf
tgraf at suug.ch
Fri Nov 29 03:42:37 EST 2013
From: Samuel Gauthier <samuel.gauthier at 6wind.com>
It lacked this part in nla_parse.
Cc: Nicolas Dichtel <nicolas.dichtel at 6wind.com>
Signed-off-by: Samuel Gauthier <samuel.gauthier at 6wind.com>
Signed-off-by: Thomas Graf <tgraf at suug.ch>
---
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;
--
1.8.3.1
More information about the libnl
mailing list