mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
mbedtls: Fix enable dynamic mbedtls will occur heap corruption when server support TLS renegotiation
This commit is contained in:
parent
a45478abc6
commit
5a234cf642
@ -185,6 +185,11 @@ static int manage_resource(mbedtls_ssl_context *ssl, bool add)
|
||||
case MBEDTLS_SSL_FLUSH_BUFFERS:
|
||||
break;
|
||||
case MBEDTLS_SSL_HANDSHAKE_WRAPUP:
|
||||
#if defined(MBEDTLS_SSL_RENEGOTIATION)
|
||||
if (add && ssl->MBEDTLS_PRIVATE(renego_status)) {
|
||||
CHECK_OK(esp_mbedtls_add_rx_buffer(ssl));
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user