mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[AFD] Respect the maximum receive buffer size for datagram sockets. CORE-14048
This commit is contained in:
parent
8a83c24419
commit
05b4bd3833
2 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ NTSTATUS WarmSocketForBind( PAFD_FCB FCB, ULONG ShareType ) {
|
|||
Status = STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
if (NT_SUCCESS(Status))
|
||||
if (NT_SUCCESS(Status) && FCB->Recv.Content < FCB->Recv.Size)
|
||||
{
|
||||
Status = TdiReceiveDatagram(&FCB->ReceiveIrp.InFlightRequest,
|
||||
FCB->AddressFile.Object,
|
||||
|
|
|
@ -681,7 +681,7 @@ PacketSocketRecvComplete(
|
|||
} else
|
||||
FCB->PollState &= ~AFD_EVENT_RECEIVE;
|
||||
|
||||
if( NT_SUCCESS(Irp->IoStatus.Status) ) {
|
||||
if( NT_SUCCESS(Irp->IoStatus.Status) && FCB->Recv.Content < FCB->Recv.Size ) {
|
||||
/* Now relaunch the datagram request */
|
||||
Status = TdiReceiveDatagram
|
||||
( &FCB->ReceiveIrp.InFlightRequest,
|
||||
|
|
Loading…
Reference in a new issue