Commit 84d6ce44 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

[IPSEC]: Fix IPCOMP6 ICMP type check.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@redhat.com>
parent eb953f4b
...@@ -240,7 +240,7 @@ static void ipcomp6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, ...@@ -240,7 +240,7 @@ static void ipcomp6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
struct ipv6_comp_hdr *ipcomph = (struct ipv6_comp_hdr*)(skb->data+offset); struct ipv6_comp_hdr *ipcomph = (struct ipv6_comp_hdr*)(skb->data+offset);
struct xfrm_state *x; struct xfrm_state *x;
if (type != ICMPV6_DEST_UNREACH || type != ICMPV6_PKT_TOOBIG) if (type != ICMPV6_DEST_UNREACH && type != ICMPV6_PKT_TOOBIG)
return; return;
spi = ntohl(ntohs(ipcomph->cpi)); spi = ntohl(ntohs(ipcomph->cpi));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment