mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 11:24:14 +02:00
* Fix issue #40244
This commit is contained in:
parent
803a6fea24
commit
193cd4d6ec
@ -749,7 +749,8 @@ end;
|
||||
|
||||
function TLSocket.DoSend(const aData; const aSize: Integer): Integer;
|
||||
var
|
||||
AddressLength: Longint = SizeOf(FPeerAddress);
|
||||
AddressLength: Longint = SizeOf(FPeerAddress.IPv4);
|
||||
|
||||
begin
|
||||
if FSocketType = SOCK_STREAM then
|
||||
Result := Sockets.fpSend(FHandle, @aData, aSize, LMSG)
|
||||
@ -759,7 +760,7 @@ end;
|
||||
|
||||
function TLSocket.DoGet(out aData; const aSize: Integer): Integer;
|
||||
var
|
||||
AddressLength: Longint = SizeOf(FPeerAddress);
|
||||
AddressLength: Longint = SizeOf(FPeerAddress.IPv4);
|
||||
begin
|
||||
if FSocketType = SOCK_STREAM then
|
||||
Result := sockets.fpRecv(FHandle, @aData, aSize, LMSG)
|
||||
|
Loading…
Reference in New Issue
Block a user