[TCPIP] Copy back unicast IP if broadcast is specified for listen.

CORE-12152

svn path=/trunk/; revision=73095
This commit is contained in:
Peter Hater 2016-11-02 11:24:08 +00:00
parent 2a33de20a4
commit 494db7a55d

View file

@ -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)
{