mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:33:01 +00:00
[TCPIP] Copy back unicast IP if broadcast is specified for listen.
CORE-12152 svn path=/trunk/; revision=73095
This commit is contained in:
parent
2a33de20a4
commit
494db7a55d
1 changed files with 6 additions and 0 deletions
|
@ -337,6 +337,12 @@ NTSTATUS TCPConnect
|
||||||
|
|
||||||
if (NT_SUCCESS(Status))
|
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;
|
||||||
|
}
|
||||||
/* Check if we had an unspecified port */
|
/* Check if we had an unspecified port */
|
||||||
if (!Connection->AddressFile->Port)
|
if (!Connection->AddressFile->Port)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue