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

Next file: linux/net/ipv4/ip_forward.c
Previous file: linux/net/core/sock.c
Back to the patch index
Back to the overall index

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

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