mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -1174,6 +1174,6 @@ int qc_alloc_ssl_sock_ctx(struct quic_conn *qc)
|
|||
|
||||
err:
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue