From 98ad82bfc998c9f6799c0e13a05aceefd54623b0 Mon Sep 17 00:00:00 2001 From: Julian Anastasov Date: Mon, 13 Oct 2003 20:50:35 -0700 Subject: [PATCH] [IPV4]: ip_fragment should not reassemble if all frags do not have owner --- net/ipv4/ip_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index bb3b555f3672f..44f1dff39fab2 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c @@ -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? */ -- 2.53.0