netfilter: nf_defrag_ipv4: Drop redundant ip_send_check()
Since commit 0848f6428b
("inet: frags: fix defragmented packet's IP
header for af_packet"), ip_send_check() would be called twice for
defragmentation that occurs from netfilter ipv4 defrag hooks. Remove the
extra call.
Signed-off-by: Joe Stringer <joe@ovn.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
a7ed31cf65
commit
5f547391f5
|
@ -31,10 +31,8 @@ static int nf_ct_ipv4_gather_frags(struct net *net, struct sk_buff *skb,
|
||||||
err = ip_defrag(net, skb, user);
|
err = ip_defrag(net, skb, user);
|
||||||
local_bh_enable();
|
local_bh_enable();
|
||||||
|
|
||||||
if (!err) {
|
if (!err)
|
||||||
ip_send_check(ip_hdr(skb));
|
|
||||||
skb->ignore_df = 1;
|
skb->ignore_df = 1;
|
||||||
}
|
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue