Skip to content

Commit 921503e

Browse files
alxelaxrlubos
authored andcommitted
net: openthread: rpc: fix ot rpc commissioning server
Commit fixes allocated buffer length to fit max size tlvs reply on otDatasetGetActiveTlvs request. Signed-off-by: Aleksandr Khromykh <[email protected]>
1 parent b51aa05 commit 921503e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/openthread/rpc/server/ot_rpc_commissioning_server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ static void ot_rpc_rsp_send_dataset(otOperationalDatasetTlvs *dataset)
152152
{
153153
struct nrf_rpc_cbor_ctx ctx;
154154

155-
NRF_RPC_CBOR_ALLOC(&ot_group, ctx, dataset ? dataset->mLength + 1 : 1);
155+
NRF_RPC_CBOR_ALLOC(&ot_group, ctx, dataset ? dataset->mLength + 2 : 1);
156156
nrf_rpc_encode_buffer(&ctx, dataset ? dataset->mTlvs : NULL,
157157
dataset ? dataset->mLength : 0);
158158
nrf_rpc_cbor_rsp_no_err(&ot_group, &ctx);

0 commit comments

Comments
 (0)