{
blobmsg_for_each_attr(cur, tb[RPC_A_VALUES], rem)
{
+ ptr.flags = 0;
ptr.o = NULL;
ptr.option = blobmsg_name(cur);
if (blobmsg_type(opt) == BLOBMSG_TYPE_ARRAY)
{
- if (ptr->o)
+ if (ptr->o) {
uci_delete(cursor, ptr);
+ ptr->flags = 0;
+ }
rv = UBUS_STATUS_INVALID_ARGUMENT;
else if (ptr->o && ptr->o->type == UCI_TYPE_LIST)
{
uci_delete(cursor, ptr);
+ ptr->flags = 0;
if (!rpc_uci_format_blob(opt, &ptr->value))
return UBUS_STATUS_INVALID_ARGUMENT;
continue;
uci_delete(cursor, ptr);
+ ptr->flags = 0;
rv = 0;
}
};
static struct ubus_object_type uci_type =
- UBUS_OBJECT_TYPE("luci-rpc-uci", uci_methods);
+ UBUS_OBJECT_TYPE("rpcd-plugin-uci", uci_methods);
static struct ubus_object obj = {
.name = "uci",