mirror of
https://github.com/reactos/reactos.git
synced 2024-10-21 21:34:17 +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
|
@ -973,9 +973,14 @@ WSPAccept(
|
|||
}
|
||||
|
||||
/* Return Address in SOCKADDR FORMAT */
|
||||
if( SocketAddress ) {
|
||||
RtlCopyMemory (SocketAddress,
|
||||
&ListenReceiveData->Address.Address[0].AddressType,
|
||||
sizeof(RemoteAddress));
|
||||
if( *SocketAddressLength )
|
||||
*SocketAddressLength =
|
||||
ListenReceiveData->Address.Address[0].AddressLength;
|
||||
}
|
||||
|
||||
NtClose( SockEvent );
|
||||
|
||||
|
|
Loading…
Reference in a new issue