mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
parent
0f8afff021
commit
95d9533294
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user