]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
Be liberal when receiving an empty nested attribute
authorThomas Graf <tgr@deb.localdomain>
Fri, 22 Feb 2008 14:20:58 +0000 (15:20 +0100)
committerThomas Graf <tgr@deb.localdomain>
Fri, 22 Feb 2008 14:20:58 +0000 (15:20 +0100)
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.

lib/attr.c

index b1339ded112150f100129a84901beae0b339ea3e..875c881b8585c32cf745839a5f6c5419d99aef17 100644 (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,