[PATCH] can: Fix nested message creation in can_put_attrs()
Holger Dengler
dengler at linutronix.de
Fri Feb 1 05:56:47 EST 2013
Signed-off-by: Benedikt Spranger <b.spranger at linutronix.de>
Signed-off-by: Holger Dengler <dengler at linutronix.de>
---
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;
--
1.7.10.4
More information about the libnl
mailing list