Skip to content

Commit 07cd1c2

Browse files
committed
Merge branch 'fix(esp_tls)/dynamic_buffer_ssl_crash_v5.4' into 'release/v5.4'
fix(esp_tls): fix potential ssl crash with dynamic buffer (v5.4) See merge request espressif/esp-idf!42139
2 parents 8574a0a + ee5df2e commit 07cd1c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/esp-tls/esp_tls_mbedtls.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ int esp_mbedtls_handshake(esp_tls_t *tls, const esp_tls_cfg_t *cfg)
239239
ret = esp_mbedtls_dynamic_set_rx_buf_static(&tls->ssl);
240240
if (ret != 0) {
241241
ESP_LOGE(TAG, "esp_mbedtls_dynamic_set_rx_buf_static returned -0x%04X", -ret);
242-
return ret;
242+
return -1;
243243
}
244244
}
245245
#endif

0 commit comments

Comments
 (0)