From 506020ae99377ce45992d225e3b2917ee7b45b77 Mon Sep 17 00:00:00 2001 From: Holger Dengler Date: Fri, 1 Feb 2013 11:56:47 +0100 Subject: [PATCH] can: Fix nested message creation in can_put_attrs() Signed-off-by: Benedikt Spranger Signed-off-by: Holger Dengler Signed-off-by: Thomas Graf --- lib/route/link/can.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/route/link/can.c b/lib/route/link/can.c index 307dec0..60da42d 100644 --- a/lib/route/link/can.c +++ b/lib/route/link/can.c @@ -321,6 +321,8 @@ static int can_put_attrs(struct nl_msg *msg, struct rtnl_link *link) NLA_PUT(msg, CAN_HAS_CLOCK, sizeof(ci->ci_clock), &ci->ci_clock); + nla_nest_end(msg, data); + nla_put_failure: return 0;