BUG/MINOR: quic: Missing SSL session object freeing
authorFrederic Lecaille <flecaille@haproxy.com>
Wed, 4 Jun 2025 09:49:14 +0000 (11:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Jun 2025 06:04:10 +0000 (08:04 +0200)
commit50984532e8851d7d36491d953236aebcf78255e3
tree2dfed6968a5931f922a17d215abafb78dd49b71f
parent160574c9c95a86cd2b2995639becd433adf42e87
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.

(cherry picked from commit 6b746330692380f7e88fc757b7124b5a9c88ebd8)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit aaef9e0000fb2fc6011d9a95e6e7f5241863db8f)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 3ba302684fcc346ed02c3892335f5ab9e8bceeb8)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/quic_ssl.c