Merge branch 'fix/update_tls_sockfd_after_freeing_internally_v4.1' into 'release/v4.1'

esp-tls : (Fix) update tls->sockfd value after socket is freed internally (v4.1)

See merge request espressif/esp-idf!11696
This commit is contained in:
Mahavir Jain 2021-01-29 17:23:12 +08:00
commit fa0f3dc13c

View File

@ -178,6 +178,7 @@ void esp_mbedtls_conn_delete(esp_tls_t *tls)
esp_mbedtls_cleanup(tls);
if (tls->is_tls) {
mbedtls_net_free(&tls->server_fd);
tls->sockfd = tls->server_fd.fd;
}
}
}