diff options
Diffstat (limited to 'net/ipv4/ipcomp.c')
-rw-r--r-- | net/ipv4/ipcomp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/ipcomp.c b/net/ipv4/ipcomp.c index 8eb46064c525..1f13cc507a47 100644 --- a/net/ipv4/ipcomp.c +++ b/net/ipv4/ipcomp.c | |||
@@ -174,8 +174,8 @@ static void ipcomp4_err(struct sk_buff *skb, u32 info) | |||
174 | struct ip_comp_hdr *ipch = (struct ip_comp_hdr *)(skb->data+(iph->ihl<<2)); | 174 | struct ip_comp_hdr *ipch = (struct ip_comp_hdr *)(skb->data+(iph->ihl<<2)); |
175 | struct xfrm_state *x; | 175 | struct xfrm_state *x; |
176 | 176 | ||
177 | if (skb->h.icmph->type != ICMP_DEST_UNREACH || | 177 | if (icmp_hdr(skb)->type != ICMP_DEST_UNREACH || |
178 | skb->h.icmph->code != ICMP_FRAG_NEEDED) | 178 | icmp_hdr(skb)->code != ICMP_FRAG_NEEDED) |
179 | return; | 179 | return; |
180 | 180 | ||
181 | spi = htonl(ntohs(ipch->cpi)); | 181 | spi = htonl(ntohs(ipch->cpi)); |