HomeFreeBSD

so_splice: Fix the KTLS check for the sink socket in so_splice()

Description

so_splice: Fix the KTLS check for the sink socket in so_splice()

Approved by: re (cperciva)
Reviewed by: gallatin
Reported by: Claude Sonnet 4.6
Fixes: 1000cc4a0d39 ("so_splice: Disallow splicing with KTLS-enabled sockets")
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D56385

(cherry picked from commit d88a159da42a75dbd46ea4f6f9c8059975dab5e8)
(cherry picked from commit 43b1de5970d1246aa54d8e34b0f211511cc2b103)

Details