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 Wed, Jun 26, 7:16 PM. Authored by
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
|