Merge branch 'fix/update_tls_sockfd_after_freeing_internally' into 'master'

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

Closes IDFGH-4321

See merge request espressif/esp-idf!11417
This commit is contained in:
Mahavir Jain 2020-12-02 21:23:39 +08:00
commit a5fd7878db

View File

@ -207,6 +207,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;
}
}
}