X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=net%2Fipv4%2Ftcp_ipv4.c;h=fc1c658ec6c18cb1daa1cc06039a9f19df67bb5e;hb=b357a364c57c9;hp=3571f2be4470749b9a7c8178fa43a6bf2bac33d8;hpb=1d8dc3d3c8f1d8ee1da9d54c5d7c8694419ade42;p=cascardo%2Flinux.git diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index 3571f2be4470..fc1c658ec6c1 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -1348,7 +1348,8 @@ 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); - reqsk_put(req); + if (!nsk) + reqsk_put(req); return nsk; }