Author: phater
Date: Thu Nov 3 14:53:00 2016
New Revision: 73109
URL:
http://svn.reactos.org/svn/reactos?rev=73109&view=rev
Log:
[TCPIP] Always copy back bind IP in connection. Spotted by Thomas. Thanks
CORE-12152
Modified:
trunk/reactos/sdk/lib/drivers/ip/transport/tcp/tcp.c
Modified: trunk/reactos/sdk/lib/drivers/ip/transport/tcp/tcp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/drivers/ip/transpo…
==============================================================================
--- trunk/reactos/sdk/lib/drivers/ip/transport/tcp/tcp.c [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/drivers/ip/transport/tcp/tcp.c [iso-8859-1] Thu Nov 3 14:53:00
2016
@@ -337,12 +337,8 @@
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)
{