Skip to content

Commit

Permalink
Merge branch 'fix/esp_tls_excessive_parameter_check_v5.3' into 'relea…
Browse files Browse the repository at this point in the history
…se/v5.3'

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

See merge request espressif/esp-idf!34266
  • Loading branch information
AdityaHPatwardhan committed Oct 18, 2024
2 parents 3e6ae73 + 76d5665 commit 5197683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/esp-tls/esp_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5197683

Please # to comment.