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

sd-rtnl: mark nested attributes with the NLA_F_NESTED flag

The kernel mostly does not check this, but let's be consisntent and allways set it anyway. Based
on patch from Susant Sahani.
This commit is contained in:
Tom Gundersen 2014-10-29 10:52:07 +01:00
parent 0a2478a918
commit fcf81a54a4

View File

@ -725,7 +725,7 @@ int sd_rtnl_message_open_container(sd_rtnl_message *m, unsigned short type) {
if (r < 0)
return r;
r = add_rtattr(m, type, NULL, size);
r = add_rtattr(m, type | NLA_F_NESTED, NULL, size);
if (r < 0)
return r;