Revert "ipv6: prevent UAF in ip6_send_skb()"

This reverts commit d6266009b2.
This commit is contained in:
Ksawlii 2024-11-24 00:23:51 +01:00
parent 6fe606a02b
commit e14260decb

View file

@ -1968,7 +1968,6 @@ int ip6_send_skb(struct sk_buff *skb)
struct rt6_info *rt = (struct rt6_info *)skb_dst(skb);
int err;
rcu_read_lock();
err = ip6_local_out(net, skb->sk, skb);
if (err) {
if (err > 0)
@ -1978,7 +1977,6 @@ int ip6_send_skb(struct sk_buff *skb)
IPSTATS_MIB_OUTDISCARDS);
}
rcu_read_unlock();
return err;
}