[Modify] Polish it

This commit is contained in:
sta 2021-03-07 21:23:40 +09:00
parent 48266527a5
commit 7790de7846

View File

@ -321,7 +321,10 @@ namespace WebSocketSharp.Net
_sawCr = false; _sawCr = false;
} }
if (_state == InputChunkState.Trailer && offset < length) { if (_state == InputChunkState.Trailer) {
if (offset >= length)
return;
_state = setTrailer (buffer, ref offset, length); _state = setTrailer (buffer, ref offset, length);
if (_state == InputChunkState.Trailer) if (_state == InputChunkState.Trailer)