mirror of
https://github.com/espressif/openthread.git
synced 2026-08-05 02:17:47 +00:00
[coap] clear M flag in Block2 request as required by RFC 7959 (#12563)
Closes #12560
This commit is contained in:
@@ -1337,6 +1337,7 @@ Error CoapBase::SendNextBlock2Request(Request &aRequest, Msg &aRxMsg, uint32_t a
|
||||
|
||||
requestBlockInfo = msgBlockInfo;
|
||||
requestBlockInfo.mBlockNumber++;
|
||||
requestBlockInfo.mMoreBlocks = false; // RFC 7959 Section 2.3 second bullet: MUST be 0 in request.
|
||||
|
||||
SuccessOrExit(error = PrepareNextBlockRequest(kOptionBlock2, aRequest, *request, requestBlockInfo));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user