[DCCP] ipv6: dccp_v6_send_response() has a DST leak too.
authorDavid S. Miller <davem@sunset.davemloft.net>
Wed, 1 Feb 2006 01:53:37 +0000 (17:53 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 1 Feb 2006 01:53:37 +0000 (17:53 -0800)
It was copy&pasted from tcp_v6_send_synack() which has
a DST leak recently fixed by Eric W. Biederman.

So dccp_v6_send_response() needs the same fix too.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/ipv6.c

index df074259f9c3100581f649499dac1ae5554d1770..80c4d048869e10e2880b5dff67ea22ccd1d0e8f6 100644 (file)
@@ -468,6 +468,7 @@ static int dccp_v6_send_response(struct sock *sk, struct request_sock *req,
 done:
         if (opt && opt != np->opt)
                sock_kfree_s(sk, opt, opt->tot_len);
+       dst_release(dst);
        return err;
 }