mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-20 22:05:15 +00:00
Add call to mbedtls_x509_crt_free()
This commit is contained in:
parent
e151a3528a
commit
c162895030
1 changed files with 1 additions and 0 deletions
|
|
@ -12057,6 +12057,7 @@ void mbedtls_ssl_handshake_free( mbedtls_ssl_context *ssl )
|
|||
#endif /* MBEDTLS_SSL_PROTO_TLS1_2 */
|
||||
|
||||
#if defined(MBEDTLS_SSL_FREE_SERVER_CERTIFICATE)
|
||||
mbedtls_x509_crt_free( ssl->session_negotiate->peer_cert );
|
||||
mbedtls_free( ssl->session->peer_cert );
|
||||
ssl->session->peer_cert = NULL;
|
||||
#endif /* MBEDTLS_SSL_FREE_SERVER_CERTIFICATE */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue