X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=net%2Fdccp%2Fipv6.c;h=5165571f397aa6d40da19d36287ca8339852ab54;hb=41f2a93cc6d13fa1c82db1281162500fcc57ba3e;hp=9d0551092c6cd73f3cfa30c89130bac69d693118;hpb=d839c98f98826f0c13e46d5a4cecb46dd357b50e;p=karo-tx-linux.git diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c index 9d0551092c6c..5165571f397a 100644 --- a/net/dccp/ipv6.c +++ b/net/dccp/ipv6.c @@ -301,7 +301,8 @@ static struct sock *dccp_v6_hnd_req(struct sock *sk,struct sk_buff *skb) &iph->daddr, inet6_iif(skb)); if (req) { nsk = dccp_check_req(sk, skb, req); - reqsk_put(req); + if (!nsk) + reqsk_put(req); return nsk; } nsk = __inet6_lookup_established(sock_net(sk), &dccp_hashinfo,