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)
Thu, Jun 4, 10:46 AM
Unknown Object (File)
Sun, May 31, 12:51 AM
Unknown Object (File)
Sat, May 30, 11:10 AM
Unknown Object (File)
Sat, May 23, 11:18 PM
Unknown Object (File)
Tue, May 19, 6:37 AM
Unknown Object (File)
Thu, May 14, 10:14 PM
Unknown Object (File)
Thu, May 14, 8:36 PM
Unknown Object (File)
Thu, May 14, 4:26 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