Commit 643e0d68 authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji Committed by David S. Miller

[IPV6]: Fix ip6_copy_metadata potential dst leak too.

Same fix as per ipv4 ip_copy_metadata().
Signed-off-by: default avatarHideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a57c541f
...@@ -463,6 +463,7 @@ static void ip6_copy_metadata(struct sk_buff *to, struct sk_buff *from) ...@@ -463,6 +463,7 @@ static void ip6_copy_metadata(struct sk_buff *to, struct sk_buff *from)
to->priority = from->priority; to->priority = from->priority;
to->protocol = from->protocol; to->protocol = from->protocol;
to->security = from->security; to->security = from->security;
dst_release(to->dst);
to->dst = dst_clone(from->dst); to->dst = dst_clone(from->dst);
to->dev = from->dev; to->dev = from->dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment