summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2024-01-18 12:16:55 +0000
committerMatt Caswell <matt@openssl.org>2024-01-31 10:10:55 +0000
commitfa4b1151c829b8be1d83cb49c9809d3a4f59fb03 (patch)
treed5af5c9afc767d84af5898c62cc9eef0f5de5733 /ssl
parent4a0e4849af1588dfe9d7e01738acc96799b83447 (diff)
Free the tserver TLS object before freeing the channel
The TLS object may make callbacks into QUIC during cleanup so we must free it first. Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23256)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/quic/quic_tserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/quic/quic_tserver.c b/ssl/quic/quic_tserver.c
index 159669ef8f..831d0463bd 100644
--- a/ssl/quic/quic_tserver.c
+++ b/ssl/quic/quic_tserver.c
@@ -173,13 +173,13 @@ void ossl_quic_tserver_free(QUIC_TSERVER *srv)
if (srv == NULL)
return;
+ SSL_free(srv->tls);
ossl_quic_channel_free(srv->ch);
ossl_quic_port_free(srv->port);
ossl_quic_engine_free(srv->engine);
BIO_free_all(srv->args.net_rbio);
BIO_free_all(srv->args.net_wbio);
OPENSSL_free(srv->ssl);
- SSL_free(srv->tls);
SSL_CTX_free(srv->ctx);
#if defined(OPENSSL_THREADS)
ossl_crypto_mutex_free(&srv->mutex);