diff options
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
| -rw-r--r-- | net/ipv4/tcp_ipv4.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 39bda2b1066e..06d2573685ca 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -829,6 +829,9 @@ static void tcp_v4_send_reset(const struct sock *sk, struct sk_buff *skb)  				   inet_twsk(sk)->tw_priority : sk->sk_priority;  		transmit_time = tcp_transmit_time(sk);  		xfrm_sk_clone_policy(ctl_sk, sk); +	} else { +		ctl_sk->sk_mark = 0; +		ctl_sk->sk_priority = 0;  	}  	ip_send_unicast_reply(ctl_sk,  			      skb, &TCP_SKB_CB(skb)->header.h4.opt, @@ -836,7 +839,6 @@ static void tcp_v4_send_reset(const struct sock *sk, struct sk_buff *skb)  			      &arg, arg.iov[0].iov_len,  			      transmit_time); -	ctl_sk->sk_mark = 0;  	xfrm_sk_free_policy(ctl_sk);  	sock_net_set(ctl_sk, &init_net);  	__TCP_INC_STATS(net, TCP_MIB_OUTSEGS); @@ -935,7 +937,6 @@ static void tcp_v4_send_ack(const struct sock *sk,  			      &arg, arg.iov[0].iov_len,  			      transmit_time); -	ctl_sk->sk_mark = 0;  	sock_net_set(ctl_sk, &init_net);  	__TCP_INC_STATS(net, TCP_MIB_OUTSEGS);  	local_bh_enable();  | 
