diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-06-21 11:25:29 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-06-21 11:25:29 +0200 |
commit | d5710cb4e1ea104915023781da841973cdf37de3 (patch) | |
tree | e8f9cdf129c8108930ca123b70b4c0252aeaef78 | |
parent | a6b0c13b1891667a27a8d60506456b288d3f0faa (diff) |
ubus: fix handling of empty JSON-RPC batches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r-- | ubus.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -511,9 +511,7 @@ static void uh_ubus_data_done(struct client *cl) return uh_ubus_handle_request_object(cl, obj); case json_type_array: uh_ubus_init_batch(cl); - if (json_object_array_length(obj) > 0) - return uh_ubus_next_batched_request(cl); - /* fall through */ + return uh_ubus_next_batched_request(cl); default: return uh_ubus_single_error(cl, ERROR_PARSE); } |