mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 13:38:19 +00:00
[TCPIP] Always copy back bind IP in connection. Spotted by Thomas. Thanks
CORE-12152 svn path=/trunk/; revision=73109
This commit is contained in:
parent
bdcecff0be
commit
ee601ad450
1 changed files with 2 additions and 6 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue