Page MenuHomeFreeBSD

tcp: improve failure handling in tcp_newtcpcb()
ClosedPublic

Authored by tuexen on Jun 26 2024, 8:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 20, 12:26 PM
Unknown Object (File)
Sun, Sep 14, 4:26 PM
Unknown Object (File)
Sep 5 2025, 4:51 PM
Unknown Object (File)
Sep 5 2025, 12:40 PM
Unknown Object (File)
Aug 29 2025, 6:55 PM
Unknown Object (File)
Aug 29 2025, 3:59 PM
Unknown Object (File)
Aug 29 2025, 5:29 AM
Unknown Object (File)
Aug 28 2025, 1:45 PM
Subscribers

Details

Summary

In case of a failure, where NULL is returned,

  • call CC_ALGO(tp)->cb_destroy, after CC_ALGO(tp)->cb_init was called.
  • call khelp_destroy_osd(), after khelp_init_osd() was called.

Diff Detail

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