aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp')
-rw-r--r--net/sctp/input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c
index 3a322c584c74..40d0df80183f 100644
--- a/net/sctp/input.c
+++ b/net/sctp/input.c
@@ -507,8 +507,8 @@ void sctp_v4_err(struct sk_buff *skb, __u32 info)
507{ 507{
508 struct iphdr *iph = (struct iphdr *)skb->data; 508 struct iphdr *iph = (struct iphdr *)skb->data;
509 struct sctphdr *sh = (struct sctphdr *)(skb->data + (iph->ihl <<2)); 509 struct sctphdr *sh = (struct sctphdr *)(skb->data + (iph->ihl <<2));
510 int type = skb->h.icmph->type; 510 const int type = icmp_hdr(skb)->type;
511 int code = skb->h.icmph->code; 511 const int code = icmp_hdr(skb)->code;
512 struct sock *sk; 512 struct sock *sk;
513 struct sctp_association *asoc = NULL; 513 struct sctp_association *asoc = NULL;
514 struct sctp_transport *transport; 514 struct sctp_transport *transport;