]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-netlink: mark union containers as nested
authorTom Gundersen <teg@jklm.no>
Tue, 23 Jun 2015 11:18:18 +0000 (13:18 +0200)
committerTom Gundersen <teg@jklm.no>
Sun, 28 Jun 2015 17:10:51 +0000 (19:10 +0200)
This was an oversight, they are no different from regular containers in this respect.

src/libsystemd/sd-netlink/netlink-message.c

index a935b821f6ce4fe18e3ae15f6f1ea8f7bba3ad3a..6b6843e91b044807a4f45d955e411e50c68b814a 100644 (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;