Fix for NULL dereference in skb tracking code

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3136 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
mtaylor 2008-01-16 00:02:50 +00:00
parent e6a0fd9b49
commit e43eb9472d

View File

@ -268,7 +268,8 @@ static void print_skb_trackchange_message(
static struct sk_buff *
clean_clone_or_copy(struct sk_buff *skb) {
SKB_CB(skb)->tracked = 0;
if (skb != NULL)
SKB_CB(skb)->tracked = 0;
return skb;
}