|
@@ -688,7 +688,7 @@ static int batadv_check_unicast_ttvn(struct batadv_priv *bat_priv,
|
|
int is_old_ttvn;
|
|
int is_old_ttvn;
|
|
|
|
|
|
/* check if there is enough data before accessing it */
|
|
/* check if there is enough data before accessing it */
|
|
- if (pskb_may_pull(skb, hdr_len + ETH_HLEN) < 0)
|
|
|
|
|
|
+ if (!pskb_may_pull(skb, hdr_len + ETH_HLEN))
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
/* create a copy of the skb (in case of for re-routing) to modify it. */
|
|
/* create a copy of the skb (in case of for re-routing) to modify it. */
|