mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 00:45:43 +00:00
Correct handling of zero address and zero address length in accept.
svn path=/trunk/; revision=13022
This commit is contained in:
parent
756723d2d5
commit
d8dd93dab9
1 changed files with 8 additions and 3 deletions
|
@ -973,9 +973,14 @@ WSPAccept(
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return Address in SOCKADDR FORMAT */
|
/* Return Address in SOCKADDR FORMAT */
|
||||||
RtlCopyMemory (SocketAddress,
|
if( SocketAddress ) {
|
||||||
&ListenReceiveData->Address.Address[0].AddressType,
|
RtlCopyMemory (SocketAddress,
|
||||||
sizeof(RemoteAddress));
|
&ListenReceiveData->Address.Address[0].AddressType,
|
||||||
|
sizeof(RemoteAddress));
|
||||||
|
if( *SocketAddressLength )
|
||||||
|
*SocketAddressLength =
|
||||||
|
ListenReceiveData->Address.Address[0].AddressLength;
|
||||||
|
}
|
||||||
|
|
||||||
NtClose( SockEvent );
|
NtClose( SockEvent );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue