diff options
-rw-r--r-- | net/ipv6/mip6.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/mip6.c b/net/ipv6/mip6.c index 31445d09261e..70854035c131 100644 --- a/net/ipv6/mip6.c +++ b/net/ipv6/mip6.c | |||
@@ -234,6 +234,9 @@ static int mip6_destopt_reject(struct xfrm_state *x, struct sk_buff *skb, struct | |||
234 | struct timeval stamp; | 234 | struct timeval stamp; |
235 | int err = 0; | 235 | int err = 0; |
236 | 236 | ||
237 | if (unlikely(fl->proto == IPPROTO_MH && fl->fl_mh_type <= IP6_MH_TYPE_MAX)) | ||
238 | goto out; | ||
239 | |||
237 | if (likely(opt->dsthao)) { | 240 | if (likely(opt->dsthao)) { |
238 | offset = ipv6_find_tlv(skb, opt->dsthao, IPV6_TLV_HAO); | 241 | offset = ipv6_find_tlv(skb, opt->dsthao, IPV6_TLV_HAO); |
239 | if (likely(offset >= 0)) | 242 | if (likely(offset >= 0)) |