Merge branch 'fix/esp_tls_excessive_parameter_check' into 'master'

fix(esp-tls): Reduce parameter check for esp_tls_conn_read

Closes IDF-10912

See merge request espressif/esp-idf!33036
This commit is contained in:
Mahavir Jain 2024-08-23 19:32:33 +08:00
commit a5f249bae2

View File

@ -132,7 +132,7 @@ static ssize_t tcp_write(esp_tls_t *tls, const char *data, size_t datalen)
ssize_t esp_tls_conn_read(esp_tls_t *tls, void *data, size_t datalen)
{
if (!tls || !data) {
if (!tls) {
return -1;
}
return tls->read(tls, (char *)data, datalen);