[TCPIP] Always copy back bind IP in connection. Spotted by Thomas. Thanks

CORE-12152

svn path=/trunk/; revision=73109
This commit is contained in:
Peter Hater 2016-11-03 14:53:00 +00:00
parent bdcecff0be
commit ee601ad450

View file

@ -337,12 +337,8 @@ 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;
}
/* Copy bind address into connection */
Connection->AddressFile->Address.Address.IPv4Address = bindaddr.addr;
/* Check if we had an unspecified port */
if (!Connection->AddressFile->Port)
{