summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-02-01 04:53:37 +0300
committerDavid S. Miller <davem@sunset.davemloft.net>2006-02-01 04:53:37 +0300
commit0cbd782507c502428c8ab3e91bee3940c19ac4d4 (patch)
treed0b4fc5e87810daa323d5dbdac147305b8ce026c /net
parent78b910429e2c037533d2a7bd9e95b4f94f905ef8 (diff)
downloadlinux-0cbd782507c502428c8ab3e91bee3940c19ac4d4.tar.xz
[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 <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/dccp/ipv6.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c
index df074259f9c3..80c4d048869e 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;
}