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
F174376477: D48710.id150085.diff
Fri, Oct 2, 7:08 PM
F174363628: D48710.id150311.diff
Fri, Oct 2, 5:05 PM
Unknown Object (File)
Wed, Sep 30, 7:44 PM
Unknown Object (File)
Wed, Sep 23, 1:05 PM
Unknown Object (File)
Wed, Sep 23, 6:27 AM
Unknown Object (File)
Sun, Sep 20, 3:56 AM
Unknown Object (File)
Fri, Sep 18, 8:24 PM
Unknown Object (File)
Fri, Sep 11, 2:23 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