aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/ipv6.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-03-13 16:17:10 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:25:30 -0400
commita27ef749e7be3b06fb58df53d94eb97a21f18707 (patch)
tree8d9b4521b51393057988780a1297f7743005b5d2 /net/sctp/ipv6.c
parentbd82393ca23324d103b21aae43160728da6e6c9c (diff)
[SCTP]: Eliminate some pointer attributions to the skb layer headers
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/ipv6.c')
-rw-r--r--net/sctp/ipv6.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c
index 0992bc5bb528..cd0af9238782 100644
--- a/net/sctp/ipv6.c
+++ b/net/sctp/ipv6.c
@@ -122,7 +122,6 @@ SCTP_STATIC void sctp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
122 int type, int code, int offset, __be32 info) 122 int type, int code, int offset, __be32 info)
123{ 123{
124 struct inet6_dev *idev; 124 struct inet6_dev *idev;
125 struct sctphdr *sh = (struct sctphdr *)(skb->data + offset);
126 struct sock *sk; 125 struct sock *sk;
127 struct sctp_association *asoc; 126 struct sctp_association *asoc;
128 struct sctp_transport *transport; 127 struct sctp_transport *transport;
@@ -136,8 +135,8 @@ SCTP_STATIC void sctp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
136 saveip = skb->nh.raw; 135 saveip = skb->nh.raw;
137 savesctp = skb->h.raw; 136 savesctp = skb->h.raw;
138 skb_reset_network_header(skb); 137 skb_reset_network_header(skb);
139 skb->h.raw = (char *)sh; 138 skb_set_transport_header(skb, offset);
140 sk = sctp_err_lookup(AF_INET6, skb, sh, &asoc, &transport); 139 sk = sctp_err_lookup(AF_INET6, skb, sctp_hdr(skb), &asoc, &transport);
141 /* Put back, the original pointers. */ 140 /* Put back, the original pointers. */
142 skb->nh.raw = saveip; 141 skb->nh.raw = saveip;
143 skb->h.raw = savesctp; 142 skb->h.raw = savesctp;