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

Closes https://github.com/espressif/esp-idf/issues/6163
This commit is contained in:
Aditya Patwardhan 2020-12-01 11:31:35 +05:30
parent 64c2f8605a
commit ebaf8ae461

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;
}
}
}