mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 03:05:40 +00:00
- Fail if DatagramRecv->Address is NULL
svn path=/branches/aicom-network-fixes/; revision=35596
This commit is contained in:
parent
963205e8b8
commit
e4a04351f2
1 changed files with 5 additions and 1 deletions
|
@ -480,12 +480,16 @@ PacketSocketRecvComplete(
|
||||||
DatagramRecv->Address =
|
DatagramRecv->Address =
|
||||||
TaCopyTransportAddress( FCB->AddressFrom->RemoteAddress );
|
TaCopyTransportAddress( FCB->AddressFrom->RemoteAddress );
|
||||||
|
|
||||||
InsertTailList( &FCB->DatagramList, &DatagramRecv->ListEntry );
|
if( !DatagramRecv->Address ) Status = STATUS_NO_MEMORY;
|
||||||
|
|
||||||
} else Status = STATUS_NO_MEMORY;
|
} else Status = STATUS_NO_MEMORY;
|
||||||
|
|
||||||
if( !NT_SUCCESS( Status ) ) {
|
if( !NT_SUCCESS( Status ) ) {
|
||||||
|
if( DatagramRecv ) ExFreePool( DatagramRecv );
|
||||||
SocketStateUnlock( FCB );
|
SocketStateUnlock( FCB );
|
||||||
return Status;
|
return Status;
|
||||||
|
} else {
|
||||||
|
InsertTailList( &FCB->DatagramList, &DatagramRecv->ListEntry );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Satisfy as many requests as we can */
|
/* Satisfy as many requests as we can */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue