Page MenuHomeFreeBSD

tcp: remove check for condition that never happens
ClosedPublic

Authored by glebius on Jan 28 2025, 11:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 13, 4:03 PM
Unknown Object (File)
Mon, May 4, 11:13 PM
Unknown Object (File)
Sat, May 2, 11:18 AM
Unknown Object (File)
Mon, Apr 27, 12:34 PM
Unknown Object (File)
Sun, Apr 19, 1:26 AM
Unknown Object (File)
Sat, Apr 18, 6:43 PM
Unknown Object (File)
Sat, Apr 18, 5:55 PM
Unknown Object (File)
Sat, Apr 18, 11:41 AM
Subscribers

Details

Summary

A tcpcb in TCPS_LISTEN has always socket in SO_ACCEPTCONN. One block
above there is an assertion that proves that this never happens. We
stopped ever clearing SO_ACCEPTCONN back in 779f106aa169.

This reverts commit 982c1675ff8864f51007e0be402ead88429222bb.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

cc added a subscriber: cc.
cc added inline comments.
sys/netinet/tcp_input.c
1357

Right, this condition should not be valid any more.

This revision is now accepted and ready to land.Jan 31 2025, 3:10 PM