From: David S. Miller Date: Wed, 1 Feb 2006 01:53:37 +0000 (-0800) Subject: [DCCP] ipv6: dccp_v6_send_response() has a DST leak too. X-Git-Tag: v2.6.16-rc2~175^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cbd782507c502428c8ab3e91bee3940c19ac4d4;p=linux-2.6 [DCCP] ipv6: dccp_v6_send_response() has a DST leak too. 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 --- diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c index df074259f9..80c4d04886 100644 --- a/net/dccp/ipv6.c +++ b/net/dccp/ipv6.c @@ -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; }