diff options
author | Ben Pfaff <blp@nicira.com> | 2010-05-20 15:53:17 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-06-17 10:30:18 -0700 |
commit | b4d73e97bae62b5eb18bcd216b603b69ce63297b (patch) | |
tree | 9666bc47391c75998e7ca443f1b31ffc14fc1f19 /lib/netlink.c | |
parent | 8e2093fc182d6e418b998a55e3a9080d7f97cd0a (diff) |
netlink: Fix bad assumption about nested Netlink attributes.
I had assumed that nested Netlink attributes contained an entire Netlink
message, including header. This is wrong: they contain only a series of
attributes.
Nothing in the tree actually used nested attributes until now, so this
doesn't fix any existing bugs.
Diffstat (limited to 'lib/netlink.c')
-rw-r--r-- | lib/netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/netlink.c b/lib/netlink.c index 5f26feb4..de88a81e 100644 --- a/lib/netlink.c +++ b/lib/netlink.c @@ -772,7 +772,7 @@ static const size_t attr_len_range[][2] = { [NL_A_U64] = { 8, 8 }, [NL_A_STRING] = { 1, SIZE_MAX }, [NL_A_FLAG] = { 0, SIZE_MAX }, - [NL_A_NESTED] = { NLMSG_HDRLEN, SIZE_MAX }, + [NL_A_NESTED] = { 0, SIZE_MAX }, }; /* Parses the 'msg' starting at the given 'nla_offset' as a sequence of Netlink |