Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-11-08 22:19:08 +0300
committerFelix Fietkau <nbd@openwrt.org>2015-11-08 22:19:08 +0300
commit10429bccd0dc5d204635e110a7a8fae7b80d16cb (patch)
tree12d62b76a083e7df482a7e07c62a9e81eaedb19b /json_script.c
parent3d45c47752a36e123895a8b4f7e6b30ac2d0b3a0 (diff)
json_script: allow non-string types in command arguments
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'json_script.c')
-rw-r--r--json_script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/json_script.c b/json_script.c
index 22d8417..7cef481 100644
--- a/json_script.c
+++ b/json_script.c
@@ -484,8 +484,8 @@ static int cmd_process_strings(struct json_call *call, struct blob_attr *attr)
continue;
if (blobmsg_type(cur) != BLOBMSG_TYPE_STRING) {
- ctx->handle_error(ctx, "Invalid argument in command", attr);
- return -1;
+ blobmsg_add_blob(&ctx->buf, cur);
+ continue;
}
ret = cmd_add_string(call, blobmsg_data(cur));