mirror of
https://github.com/espressif/esp-idf
synced 2025-03-13 11:09:12 -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
cfd234da3a
commit
4c66d146eb
@ -196,6 +196,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…
x
Reference in New Issue
Block a user