Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove unwanted changes
  • Loading branch information
rzikm authored Mar 21, 2023
commit 1026dd253e08e26ced79af52628ac7a26a75c7b9
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ private async ValueTask<int> EnsureFullTlsFrameAsync<TIOAdapter>(CancellationTok
return frameSize;
}

if (frameSize != int.MaxValue)
if (frameSize < int.MaxValue)
{
// make sure we have space for the whole frame
_buffer.EnsureAvailableSpace(frameSize - _buffer.EncryptedLength);
Expand Down