mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
BUG/MINOR: quic: Missing SSL session object freeing
qc_alloc_ssl_sock_ctx() allocates an SSL_CTX object for each connection. It also allocates an SSL object. When this function failed, it freed only the SSL_CTX object. The correct way to free both of them is to call qc_free_ssl_sock_ctx(). Must be backported as far as 2.6.
This commit is contained in:
parent
0cdf529720
commit
6b74633069
@ -1174,6 +1174,6 @@ int qc_alloc_ssl_sock_ctx(struct quic_conn *qc)
|
|||||||
|
|
||||||
err:
|
err:
|
||||||
TRACE_DEVEL("leaving on error", QUIC_EV_CONN_NEW, qc);
|
TRACE_DEVEL("leaving on error", QUIC_EV_CONN_NEW, qc);
|
||||||
pool_free(pool_head_quic_ssl_sock_ctx, ctx);
|
qc_free_ssl_sock_ctx(&ctx);
|
||||||
goto leave;
|
goto leave;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user