X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=net%2Fipv4%2Ftcp_ipv4.c;h=0ea2e1c5d395ac979e9a301d006867d49b866ecb;hb=45e38cff4fce8d6871b5fa5e734e4dc9814d6056;hp=d7d4c2b79cf2f516f9e3f62c6fe4415e9bc137a0;hpb=c1776a18e3b5a3559f3dff5df0ecce570abd3a9f;p=firefly-linux-kernel-4.4.55.git diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index d7d4c2b79cf2..0ea2e1c5d395 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -1348,7 +1348,7 @@ static struct sock *tcp_v4_hnd_req(struct sock *sk, struct sk_buff *skb) req = inet_csk_search_req(sk, th->source, iph->saddr, iph->daddr); if (req) { nsk = tcp_check_req(sk, skb, req, false); - if (!nsk) + if (!nsk || nsk == sk) reqsk_put(req); return nsk; }