mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 18:01:07 +00:00
[TCPIP] Copy back unicast IP if broadcast is specified for listen.
CORE-12152 svn path=/trunk/; revision=73095
This commit is contained in:
parent
2a33de20a4
commit
494db7a55d
|
@ -337,6 +337,12 @@ NTSTATUS TCPConnect
|
|||
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
/* Check if we had an unspecified address */
|
||||
if (Connection->AddressFile->Address.Address.IPv4Address != bindaddr.addr)
|
||||
{
|
||||
/* We did, so we need to copy back the address */
|
||||
Connection->AddressFile->Address.Address.IPv4Address = bindaddr.addr;
|
||||
}
|
||||
/* Check if we had an unspecified port */
|
||||
if (!Connection->AddressFile->Port)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue