mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 09:49:50 +02:00
Fix error getting payload when receiving a close command.
This commit is contained in:
parent
769b8a07b0
commit
258b4576a2
@ -1024,7 +1024,7 @@ begin
|
||||
FReason:=SwapEndian(FPayload.Data.ToWord(0));
|
||||
FPayload.DataLength := FPayload.DataLength - 2;
|
||||
if FPayload.DataLength > 0 then
|
||||
move(FPayload.Data[2], FPayload.Data[0], FPayload.DataLength - 2);
|
||||
move(FPayload.Data[2], FPayload.Data[0], FPayload.DataLength);
|
||||
SetLength(FPayload.Data, FPayload.DataLength);
|
||||
end;
|
||||
Result:=True;
|
||||
|
Loading…
Reference in New Issue
Block a user