fix(esp_tls): limit ret code from esp_mbedtls_handshake

This commit is contained in:
Ashish Sharma
2025-09-23 20:17:24 +08:00
parent fb79d92005
commit 9cb348789c

View File

@@ -293,7 +293,7 @@ int esp_mbedtls_handshake(esp_tls_t *tls, const esp_tls_cfg_t *cfg)
ret = esp_mbedtls_dynamic_set_rx_buf_static(&tls->ssl); ret = esp_mbedtls_dynamic_set_rx_buf_static(&tls->ssl);
if (ret != 0) { if (ret != 0) {
ESP_LOGE(TAG, "esp_mbedtls_dynamic_set_rx_buf_static returned -0x%04X", -ret); ESP_LOGE(TAG, "esp_mbedtls_dynamic_set_rx_buf_static returned -0x%04X", -ret);
return ret; return -1;
} }
} }
#endif #endif