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

Next file: linux/net/ipv4/icmp.c
Previous file: linux/net/ethernet/eth.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.69/linux/net/ipv4/af_inet.c linux/net/ipv4/af_inet.c
@@ -863,7 +863,7 @@
 				/*
 				 *	Allow only if both are setting reuse.
 				 */
-				if(sk2->reuse && sk->reuse)
+				if(sk2->reuse && sk->reuse && sk2->state!=TCP_LISTEN)
 					continue;
 				sti();
 				return(-EADDRINUSE);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this