blobmsg: fix blobmsg_parse_array, drop name field requirement

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2013-01-13 09:07:32 +01:00
parent 4b5f278195
commit 1ec5b85848

View file

@ -102,7 +102,7 @@ int blobmsg_parse_array(const struct blobmsg_policy *policy, int policy_len,
blob_id(attr) != policy[i].type)
continue;
if (!blobmsg_check_attr(attr, true))
if (!blobmsg_check_attr(attr, false))
return -1;
if (tb[i])