Commit 5aecc16e authored by Jamie Lokier's avatar Jamie Lokier Committed by David S. Miller

[TCP]: Fix SOCK_DONE setting when TCP receives FIN (bug introduced by ChangeSet 1.889.291.25)

parent c2fa8c6f
......@@ -2373,7 +2373,7 @@ static void tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)
tcp_schedule_ack(tp);
sk->sk_shutdown |= RCV_SHUTDOWN;
sock_reset_flag(sk, SOCK_DONE);
sock_set_flag(sk, SOCK_DONE);
switch (sk->sk_state) {
case TCP_SYN_RECV:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment