diff --git a/drivers/network/tcpip/ip/transport/tcp/tcp.c b/drivers/network/tcpip/ip/transport/tcp/tcp.c index 3b8e73112dbe1..89b9184fdcab4 100644 --- a/drivers/network/tcpip/ip/transport/tcp/tcp.c +++ b/drivers/network/tcpip/ip/transport/tcp/tcp.c @@ -365,12 +365,8 @@ NTSTATUS TCPConnect return 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) {