mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
- Move the NULL check immediately after the memory is allocated
svn path=/branches/aicom-network-fixes/; revision=35898
This commit is contained in:
parent
fe270e9c66
commit
f398b8d6eb
1 changed files with 1 additions and 1 deletions
|
@ -34,9 +34,9 @@ PVOID TCPPrepareInterface( PIP_INTERFACE IF ) {
|
|||
NTSTATUS Status;
|
||||
POSK_IFADDR ifaddr = exAllocatePool
|
||||
( NonPagedPool, sizeof(*ifaddr) + 2 * sizeof( struct sockaddr_in ) );
|
||||
if( !ifaddr ) return NULL;
|
||||
struct sockaddr_in *addr_in = (struct sockaddr_in *)&ifaddr[1];
|
||||
struct sockaddr_in *dstaddr_in = (struct sockaddr_in *)&addr_in[1];
|
||||
if( !ifaddr ) return NULL;
|
||||
|
||||
TI_DbgPrint(DEBUG_TCPIF,("Called\n"));
|
||||
|
||||
|
|
Loading…
Reference in a new issue