]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/ipv6/ip6_output.c
net: reduce structures when XFRM=n
[mirror_ubuntu-bionic-kernel.git] / net / ipv6 / ip6_output.c
index c77db0b95e263cd24a2571c0f76c69dfcc89a0bd..7d92fd97cfb9ec6d42df8a0c0ad54621013ebd0d 100644 (file)
@@ -490,7 +490,7 @@ int ip6_forward(struct sk_buff *skb)
           We don't send redirects to frames decapsulated from IPsec.
         */
        if (skb->dev == dst->dev && dst->neighbour && opt->srcrt == 0 &&
-           !skb->sp) {
+           !skb_sec_path(skb)) {
                struct in6_addr *target = NULL;
                struct rt6_info *rt;
                struct neighbour *n = dst->neighbour;