mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-20 21:31:28 +02: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
@ -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…
x
Reference in New Issue
Block a user