1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-27 10:25:06 +03:00

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-23 13:18:18 +02:00
parent 281d4a7710
commit da041d69d1

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;