File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -14295,6 +14295,10 @@ void mg_tls_free(struct mg_connection *c) {
14295
14295
mbedtls_ssl_config_free(&tls->conf);
14296
14296
#ifdef MBEDTLS_SSL_SESSION_TICKETS
14297
14297
mbedtls_ssl_ticket_free(&tls->ticket);
14298
+ #endif
14299
+ #if defined(MBEDTLS_VERSION_NUMBER) && MBEDTLS_VERSION_NUMBER >= 0x03000000 && \
14300
+ defined(MBEDTLS_PSA_CRYPTO_C)
14301
+ mbedtls_psa_crypto_free(); // https://github.com/Mbed-TLS/mbedtls/issues/9223#issuecomment-2144898336
14298
14302
#endif
14299
14303
mg_free(tls);
14300
14304
c->tls = NULL;
Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ void mg_tls_free(struct mg_connection *c) {
58
58
mbedtls_ssl_config_free (& tls -> conf );
59
59
#ifdef MBEDTLS_SSL_SESSION_TICKETS
60
60
mbedtls_ssl_ticket_free (& tls -> ticket );
61
+ #endif
62
+ #if defined(MBEDTLS_VERSION_NUMBER ) && MBEDTLS_VERSION_NUMBER >= 0x03000000 && \
63
+ defined(MBEDTLS_PSA_CRYPTO_C )
64
+ mbedtls_psa_crypto_free (); // https://github.com/Mbed-TLS/mbedtls/issues/9223#issuecomment-2144898336
61
65
#endif
62
66
mg_free (tls );
63
67
c -> tls = NULL ;
You can’t perform that action at this time.
0 commit comments