Skip to content

Commit

Permalink
[TCPIP] TCPConnect: Always copy bind address into connection
Browse files Browse the repository at this point in the history
Revert a change from the patch.
  • Loading branch information
TAN-Gaming committed Jan 14, 2024
1 parent cbbf12d commit 43eb1f0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions drivers/network/tcpip/ip/transport/tcp/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 43eb1f0

Please sign in to comment.