aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r--net/ipv4/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 926404c5e58c..71b0b60ba538 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -330,8 +330,8 @@ void __udp4_lib_err(struct sk_buff *skb, u32 info, struct hlist_head udptable[])
330 struct inet_sock *inet; 330 struct inet_sock *inet;
331 struct iphdr *iph = (struct iphdr*)skb->data; 331 struct iphdr *iph = (struct iphdr*)skb->data;
332 struct udphdr *uh = (struct udphdr*)(skb->data+(iph->ihl<<2)); 332 struct udphdr *uh = (struct udphdr*)(skb->data+(iph->ihl<<2));
333 int type = skb->h.icmph->type; 333 const int type = icmp_hdr(skb)->type;
334 int code = skb->h.icmph->code; 334 const int code = icmp_hdr(skb)->code;
335 struct sock *sk; 335 struct sock *sk;
336 int harderr; 336 int harderr;
337 int err; 337 int err;