|
@@ -441,7 +441,7 @@ __u16 ip6_tnl_parse_tlv_enc_lim(struct sk_buff *skb, __u8 *raw)
|
|
if (i + sizeof(*tel) > optlen)
|
|
if (i + sizeof(*tel) > optlen)
|
|
break;
|
|
break;
|
|
|
|
|
|
- tel = (struct ipv6_tlv_tnl_enc_lim *) skb->data + off + i;
|
|
|
|
|
|
+ tel = (struct ipv6_tlv_tnl_enc_lim *)(skb->data + off + i);
|
|
/* return index of option if found and valid */
|
|
/* return index of option if found and valid */
|
|
if (tel->type == IPV6_TLV_TNL_ENCAP_LIMIT &&
|
|
if (tel->type == IPV6_TLV_TNL_ENCAP_LIMIT &&
|
|
tel->length == 1)
|
|
tel->length == 1)
|