sd-netlink: mark union containers as nested

This was an oversight, they are no different from regular containers in this respect.
This commit is contained in:
Tom Gundersen
2015-06-28 19:10:51 +02:00
parent 281d4a7710
commit da041d69d1
+1 -1
View File
@@ -454,7 +454,7 @@ int sd_netlink_message_open_container_union(sd_netlink_message *m, unsigned shor
return r;
/* do we evere need non-null size */
r = add_rtattr(m, type, NULL, 0);
r = add_rtattr(m, type | NLA_F_NESTED, NULL, 0);
if (r < 0)
return r;