commit | eaf0ff4b41b655449a4098f8cceacb74cb7cacce | [log] [tgz] |
---|---|---|
author | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Mar 12 18:58:20 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Mar 12 18:58:20 2020 +0000 |
tree | 82b7b4803c95496ac081c3cd4c4504698f017564 | |
parent | 173d924eceaa33fe7f731dfc692dd1e1cace80f3 [diff] | |
parent | ad73771fdfac6d5bd3c390efac04d1b391690af0 [diff] |
attr: mark nested attributes as NLA_F_NESTED am: 8bdf14986a am: ad73771fdf Change-Id: I9bdd65e1ec1047dc1d7f6aa0717a4673ff31ab0f
diff --git a/lib/attr.c b/lib/attr.c index bdf3c0f..a76a284 100644 --- a/lib/attr.c +++ b/lib/attr.c
@@ -796,7 +796,7 @@ { struct nlattr *start = (struct nlattr *) nlmsg_tail(msg->nm_nlh); - if (nla_put(msg, attrtype, 0, NULL) < 0) + if (nla_put(msg, NLA_F_NESTED | attrtype, 0, NULL) < 0) return NULL; NL_DBG(2, "msg %p: attr <%p> %d: starting nesting\n",