]> granicus.if.org Git - libnl/commitdiff
can: Fix nested message creation in can_put_attrs()
authorHolger Dengler <dengler@linutronix.de>
Fri, 1 Feb 2013 10:56:47 +0000 (11:56 +0100)
committerThomas Graf <tgraf@suug.ch>
Fri, 1 Feb 2013 11:24:37 +0000 (12:24 +0100)
Signed-off-by: Benedikt Spranger <b.spranger@linutronix.de>
Signed-off-by: Holger Dengler <dengler@linutronix.de>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
lib/route/link/can.c

index 307dec09826a4c09ee2f4428718164fcf92bda02..60da42dbff29467e3c8dbc93bba0c1ea4ae49e76 100644 (file)
@@ -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;