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",