If syncache_socket() fails after calling tcp_newtcpcb(), the resources allocated during
tcp_newtcpcb() needs to be freed. Just call tcp_discardcb() to do this.
Thanks to jtl for making me aware of the issue and proposing a fix.
Differential D45749
tcp: fix cleanup when in_pcbconnect() fails in syncache_socket() tuexen on Jun 26 2024, 7:16 PM. Authored by Tags None Referenced Files
Details If syncache_socket() fails after calling tcp_newtcpcb(), the resources allocated during Thanks to jtl for making me aware of the issue and proposing a fix.
Diff Detail
|