Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix heap use after free in TLS conn on errors
When a error causes the TLS connection to fail and stop, the conn struct is free on Tls_close_by_key(), so writing to conn->in_connect is not correct after that point. The solution is to only set the flag when the it is still valid. Reported-by: Alex <[email protected]> Link: https://lists.mailman3.com/hyperkitty/list/[email protected]/thread/TY2JYCIPC7IQ32U6VC7ZOV3FVFFOE5K3/
- Loading branch information