diff options
Diffstat (limited to 'net/ipv4/ah4.c')
-rw-r--r-- | net/ipv4/ah4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/ah4.c b/net/ipv4/ah4.c index ebcc797e1c13..e1bb9e0aa5f3 100644 --- a/net/ipv4/ah4.c +++ b/net/ipv4/ah4.c | |||
@@ -198,8 +198,8 @@ static void ah4_err(struct sk_buff *skb, u32 info) | |||
198 | struct ip_auth_hdr *ah = (struct ip_auth_hdr*)(skb->data+(iph->ihl<<2)); | 198 | struct ip_auth_hdr *ah = (struct ip_auth_hdr*)(skb->data+(iph->ihl<<2)); |
199 | struct xfrm_state *x; | 199 | struct xfrm_state *x; |
200 | 200 | ||
201 | if (skb->h.icmph->type != ICMP_DEST_UNREACH || | 201 | if (icmp_hdr(skb)->type != ICMP_DEST_UNREACH || |
202 | skb->h.icmph->code != ICMP_FRAG_NEEDED) | 202 | icmp_hdr(skb)->code != ICMP_FRAG_NEEDED) |
203 | return; | 203 | return; |
204 | 204 | ||
205 | x = xfrm_state_lookup((xfrm_address_t *)&iph->daddr, ah->spi, IPPROTO_AH, AF_INET); | 205 | x = xfrm_state_lookup((xfrm_address_t *)&iph->daddr, ah->spi, IPPROTO_AH, AF_INET); |