Loading
lib/jsonrpc: add assert in begin_response for send_len
This patch adds an assertion in begin_response to ensure that no response data has been written yet. Otherwise, a malformed JSON response could be produced. Change-Id: Ife2a6a1661edb206cd392e4957680a4e1e0cbba4 Signed-off-by:Anton Nayshtut <anayshtut@nvidia.com> Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/25987 Community-CI: Mellanox Build Bot Reviewed-by:
Konrad Sztyber <ksztyber@nvidia.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Tested-by:
SPDK Automated Test System <spdkbot@gmail.com> Reviewed-by:
Jim Harris <jim.harris@nvidia.com>