[TCPIP] Always copy back bind IP in connection. Spotted by Thomas. Thanks
authorPeter Hater <7element@mail.bg>
Thu, 3 Nov 2016 14:53:00 +0000 (14:53 +0000)
committerPeter Hater <7element@mail.bg>
Thu, 3 Nov 2016 14:53:00 +0000 (14:53 +0000)
CORE-12152

svn path=/trunk/; revision=73109

reactos/sdk/lib/drivers/ip/transport/tcp/tcp.c

index 526a64b..399d954 100644 (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)
         {