summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-netlink/netlink-message.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-06-23 13:18:18 +0200
committerTom Gundersen <teg@jklm.no>2015-06-28 19:10:51 +0200
commitda041d69d17cbbcb6f894d58700c01ae847dea18 (patch)
treeabc074145ac4d0480e88f4be80657896149522cc /src/libsystemd/sd-netlink/netlink-message.c
parent281d4a7710b861559f11023657e661511d524ba0 (diff)
sd-netlink: mark union containers as nested
This was an oversight, they are no different from regular containers in this respect.
Diffstat (limited to 'src/libsystemd/sd-netlink/netlink-message.c')
-rw-r--r--src/libsystemd/sd-netlink/netlink-message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-netlink/netlink-message.c b/src/libsystemd/sd-netlink/netlink-message.c
index a935b821f6..6b6843e91b 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;