Skip to content

Commit b614744

Browse files
committed
Merge branch 'fix(esp_tls)/dynamic_buffer_ssl_crash' into 'master'
fix(esp_tls): fix potential ssl crash with dynamic buffer Closes IDF-14135 See merge request espressif/esp-idf!42120
2 parents fe059bc + 9cb3487 commit b614744

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
@@ -293,7 +293,7 @@ int esp_mbedtls_handshake(esp_tls_t *tls, const esp_tls_cfg_t *cfg)
293293
ret = esp_mbedtls_dynamic_set_rx_buf_static(&tls->ssl);
294294
if (ret != 0) {
295295
ESP_LOGE(TAG, "esp_mbedtls_dynamic_set_rx_buf_static returned -0x%04X", -ret);
296-
return ret;
296+
return -1;
297297
}
298298
}
299299
#endif

0 commit comments

Comments
 (0)