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)
Sun, Dec 15, 5:07 PM
Unknown Object (File)
Mon, Dec 9, 1:21 AM
Unknown Object (File)
Nov 2 2024, 2:13 AM
Unknown Object (File)
Oct 29 2024, 5:24 AM
Unknown Object (File)
Oct 27 2024, 9:43 PM
Unknown Object (File)
Oct 24 2024, 7:18 PM
Unknown Object (File)
Oct 18 2024, 4:12 AM
Unknown Object (File)
Oct 18 2024, 3:00 AM
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