Skip to content

Commit

Permalink
Update src/app/ReadHandler.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
pidarped and andy31415 authored Jun 12, 2024
1 parent b0f4ca0 commit 821b65f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app/ReadHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -921,14 +921,12 @@ void ReadHandler::ClearStateFlag(ReadHandlerFlags aFlag)

size_t ReadHandler::GetReportBufferMaxSize()
{
size_t maxBufSize = kMaxSecureSduLengthBytes;
Transport::SecureSession * session = GetSession();
if (session && session->AllowsLargePayload())
{
maxBufSize = kMaxLargeSecureSduLengthBytes;
return kMaxLargeSecureSduLengthBytes;
}

return maxBufSize;
return kMaxSecureSduLengthBytes;
}

} // namespace app
Expand Down

0 comments on commit 821b65f

Please sign in to comment.