Commit 98ad82bf authored by Julian Anastasov's avatar Julian Anastasov Committed by David S. Miller

[IPV4]: ip_fragment should not reassemble if all frags do not have owner

parent 31fba77b
......@@ -493,7 +493,7 @@ int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff*))
goto slow_path;
/* Correct socket ownership. */
if (frag->sk == NULL)
if (frag->sk == NULL && skb->sk)
goto slow_path;
/* Partially cloned skb? */
......
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