projects
/
project
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d45c47
)
json_script: allow non-string types in command arguments
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 8 Nov 2015 19:19:08 +0000
(20:19 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 8 Nov 2015 19:19:08 +0000
(20:19 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
json_script.c
patch
|
blob
|
history
diff --git
a/json_script.c
b/json_script.c
index 22d841761e37979c265e4990d69e61b2db575e02..7cef481b64f5618f7eb53f0f440428d0f0b0322b 100644
(file)
--- 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", att
r);
-
return -1
;
+
blobmsg_add_blob(&ctx->buf, cu
r);
+
continue
;
}
ret = cmd_add_string(call, blobmsg_data(cur));