Skip to content

Commit ee5df2e

Browse files
committed
fix(esp_tls): limit ret code from esp_mbedtls_handshake
1 parent df2c123 commit ee5df2e

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)