mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
commit
a5f249bae2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user