From: Tom Gundersen Date: Tue, 23 Jun 2015 11:18:18 +0000 (+0200) Subject: sd-netlink: mark union containers as nested X-Git-Tag: v222~57^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da041d69d17cbbcb6f894d58700c01ae847dea18;p=thirdparty%2Fsystemd.git sd-netlink: mark union containers as nested This was an oversight, they are no different from regular containers in this respect. --- diff --git a/src/libsystemd/sd-netlink/netlink-message.c b/src/libsystemd/sd-netlink/netlink-message.c index a935b821f6c..6b6843e91b0 100644 --- a/src/libsystemd/sd-netlink/netlink-message.c +++ b/src/libsystemd/sd-netlink/netlink-message.c @@ -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;