mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-03 13:58:24 -04:00
BUG/MEDIUM: ssl: Fix a crash if we failed to create the mux
In ssl_sock_io_cb(), if we failed to create the mux, we may have destroyed the connection, so only attempt to access it to get the ALPN if conn_create_mux() was successful. This fixes crashes that may happen when using ssl.
This commit is contained in:
parent
1759c97255
commit
07c10ec2f1
1 changed files with 1 additions and 1 deletions
|
|
@ -6500,7 +6500,7 @@ struct task *ssl_sock_io_cb(struct task *t, void *context, unsigned int state)
|
|||
* already, and immediately know which mux
|
||||
* to use, in case we want to use 0RTT.
|
||||
*/
|
||||
if (conn_is_back(conn)) {
|
||||
if (ret >= 0 && conn_is_back(conn)) {
|
||||
struct server *srv;
|
||||
const char *alpn;
|
||||
int len;
|
||||
|
|
|
|||
Loading…
Reference in a new issue