aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipmr.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ipmr.c')
-rw-r--r--net/ipv4/ipmr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
index 03869d91f6f0..05bc27002def 100644
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -1430,7 +1430,7 @@ int pim_rcv_v1(struct sk_buff * skb)
1430 if (!pskb_may_pull(skb, sizeof(*pim) + sizeof(*encap))) 1430 if (!pskb_may_pull(skb, sizeof(*pim) + sizeof(*encap)))
1431 goto drop; 1431 goto drop;
1432 1432
1433 pim = (struct igmphdr*)skb->h.raw; 1433 pim = igmp_hdr(skb);
1434 1434
1435 if (!mroute_do_pim || 1435 if (!mroute_do_pim ||
1436 skb->len < sizeof(*pim) + sizeof(*encap) || 1436 skb->len < sizeof(*pim) + sizeof(*encap) ||