Commit 72c44731 authored by Bart De Schuymer's avatar Bart De Schuymer Committed by David S. Miller

[NETFILTER]: Possible use of freed skbuff in netfilter.c

parent a8c505ff
......@@ -592,10 +592,6 @@ void nf_reinject(struct sk_buff *skb, struct nf_info *info,
info->indev, info->outdev, info->okfn))
goto next_hook;
break;
case NF_DROP:
kfree_skb(skb);
break;
}
rcu_read_unlock();
......@@ -611,6 +607,10 @@ void nf_reinject(struct sk_buff *skb, struct nf_info *info,
}
#endif
if (verdict == NF_DROP)
kfree_skb(skb);
kfree(info);
return;
}
......
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