]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - net/sctp/ipv6.c
[SK_BUFF] ipv6: More skb_reset_network_header conversions related to skb_pull
[mirror_ubuntu-hirsute-kernel.git] / net / sctp / ipv6.c
index 0b9c49b3a10000a07b391e164715cae8e322565f..5f9b145b0b90ca21c0d9dafca93697e5aacfbc0b 100644 (file)
@@ -122,7 +122,6 @@ SCTP_STATIC void sctp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
                             int type, int code, int offset, __be32 info)
 {
        struct inet6_dev *idev;
-       struct ipv6hdr *iph = (struct ipv6hdr *)skb->data;
        struct sctphdr *sh = (struct sctphdr *)(skb->data + offset);
        struct sock *sk;
        struct sctp_association *asoc;
@@ -136,7 +135,7 @@ SCTP_STATIC void sctp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
        /* Fix up skb to look at the embedded net header. */
        saveip = skb->nh.raw;
        savesctp  = skb->h.raw;
-       skb->nh.ipv6h = iph;
+       skb_reset_network_header(skb);
        skb->h.raw = (char *)sh;
        sk = sctp_err_lookup(AF_INET6, skb, sh, &asoc, &transport);
        /* Put back, the original pointers. */