patch-2.1.12 linux/net/netrom/nr_out.c

Next file: linux/net/netrom/nr_timer.c
Previous file: linux/net/netrom/nr_in.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.11/linux/net/netrom/nr_out.c linux/net/netrom/nr_out.c
@@ -227,11 +227,12 @@
 	if (!nr_route_frame(skb, NULL)) {
 		kfree_skb(skb, FREE_WRITE);
 
-		sk->state = TCP_CLOSE;
-		sk->err   = ENETUNREACH;
+		sk->state     = TCP_CLOSE;
+		sk->err       = ENETUNREACH;
+		sk->shutdown |= SEND_SHUTDOWN;
 		if (!sk->dead)
 			sk->state_change(sk);
-		sk->dead  = 1;
+		sk->dead      = 1;
 	}
 }
 

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