Be liberal when receiving an empty nested attribute

No longer enforce at least one attribute in a container of nested
attributes. The application may do so itself by setting minlen
to NLA_HDRLEN.
This commit is contained in:
Thomas Graf 2008-02-22 15:20:58 +01:00
parent ca0988a2a7
commit 4be02ace48

View file

@ -522,7 +522,6 @@ static uint16_t nla_attr_minlen[NLA_TYPE_MAX+1] = {
[NLA_U32] = sizeof(uint32_t),
[NLA_U64] = sizeof(uint64_t),
[NLA_STRING] = 1,
[NLA_NESTED] = NLA_HDRLEN,
};
static int validate_nla(struct nlattr *nla, int maxtype,