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:
parent
ca0988a2a7
commit
4be02ace48
1 changed files with 0 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue