patch-2.0.2 linux/net/ipv4/af_inet.c

Next file: linux/net/ipv4/tcp.c
Previous file: linux/kernel/fork.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.1/linux/net/ipv4/af_inet.c linux/net/ipv4/af_inet.c
@@ -926,7 +926,7 @@
 			 *	Reuse ?
 			 */
 			 
-			if (!sk2->dead)
+			if (!sk2->reuse || sk2->state==TCP_LISTEN)
 			{
 				sti();
 				return(-EADDRINUSE);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov