aboutsummaryrefslogtreecommitdiff
path: root/lib/netlink.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-05-20 15:53:17 -0700
committerBen Pfaff <blp@nicira.com>2010-06-17 10:30:18 -0700
commitb4d73e97bae62b5eb18bcd216b603b69ce63297b (patch)
tree9666bc47391c75998e7ca443f1b31ffc14fc1f19 /lib/netlink.c
parent8e2093fc182d6e418b998a55e3a9080d7f97cd0a (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.c2
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