kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/fix_dynamic_mbedtls_crash' into 'master'
mbedtls: Fix enable dynamic mbedtls will occur heap corruption when server support TLS renegotiation Closes IDF-8529 See merge request espressif/esp-idf!28086pull/12953/head
commit
7c004fd7f8
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue