HomeFreeBSD

tcp: improve ref count handling when processing SYN

Description

tcp: improve ref count handling when processing SYN

Don't leak a reference count for so->so_cred when processing an
incoming SYN segment with an on-stack syncache entry and the
sysctl variable net.inet.tcp.syncache.see_other is false.

Reviewed by: cc, markj, rscheff
MFC after: 1 week
Sponsored by: Netflix, Inc.
Pull Request: https://reviews.freebsd.org/D46793

Details

Provenance
tuexenAuthored on Sep 28 2024, 8:06 PM
Parents
rG37881f65eacd: pf: pf_clear_srcnodes() is always called with NULL
Branches
Unknown
Tags
Unknown