diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 78dd38cd5496d38f8b708996f17ce5d571599a96..0cbb44076cfa506b3223de5edf39fb10849a0af8 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -5811,6 +5811,8 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb, goto discard; if (th->syn) { + if (th->fin) + goto discard; if (icsk->icsk_af_ops->conn_request(sk, skb) < 0) return 1;