Author: cgutman
Date: Mon Aug 20 07:49:02 2012
New Revision: 57118
URL:
http://svn.reactos.org/svn/reactos?rev=57118&view=rev
Log:
[LWIP]
- Fix address reuse at the TCP layer
Modified:
trunk/reactos/lib/drivers/lwip/src/rostcp.c
Modified: trunk/reactos/lib/drivers/lwip/src/rostcp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/lwip/src/rostc…
==============================================================================
--- trunk/reactos/lib/drivers/lwip/src/rostcp.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/lwip/src/rostcp.c [iso-8859-1] Mon Aug 20 07:49:02 2012
@@ -327,12 +327,8 @@
goto done;
}
- /* If this address file is shared, set the SOF_REUSEADDR flag in the PCB */
- ASSERT(msg->Input.Bind.Connection->AddressFile != NULL);
- if (msg->Input.Bind.Connection->AddressFile->Sharers != 1)
- {
- pcb->so_options |= SOF_REUSEADDR;
- }
+ /* We're guaranteed that the local address is valid to bind at this point */
+ pcb->so_options |= SOF_REUSEADDR;
msg->Output.Bind.Error = tcp_bind(pcb,
msg->Input.Bind.IpAddress,