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 committed by bot
parent 0f8afff021
commit 95d9533294

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