From 10429bccd0dc5d204635e110a7a8fae7b80d16cb Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 8 Nov 2015 20:19:08 +0100 Subject: [PATCH] json_script: allow non-string types in command arguments Signed-off-by: Felix Fietkau --- json_script.c | 4 ++-- 1 file 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)); -- 2.11.0