patch-2.1.12 linux/net/ax25/ax25_out.c

Next file: linux/net/ax25/ax25_route.c
Previous file: linux/net/ax25/ax25_in.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.11/linux/net/ax25/ax25_out.c linux/net/ax25/ax25_out.c
@@ -257,11 +257,12 @@
 
 	if (ax25->device == NULL) {
 		if (ax25->sk != NULL) {
-			ax25->sk->state = TCP_CLOSE;
-			ax25->sk->err   = ENETUNREACH;
+			ax25->sk->state     = TCP_CLOSE;
+			ax25->sk->err       = ENETUNREACH;
+			ax25->sk->shutdown |= SEND_SHUTDOWN;
 			if (!ax25->sk->dead)
 				ax25->sk->state_change(ax25->sk);
-			ax25->sk->dead  = 1;
+			ax25->sk->dead      = 1;
 		}
 		return;
 	}

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