Author: phater
Date: Wed Nov 2 11:24:08 2016
New Revision: 73095
URL: http://svn.reactos.org/svn/reactos?rev=73095&view=rev
Log:
[TCPIP] Copy back unicast IP if broadcast is specified for listen.
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] Wed Nov 2 11:24:08 2016
@@ -337,6 +337,12 @@
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 */
if (!Connection->AddressFile->Port)
{