mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
tcp_transport: Fix to cleanup esp-tls context on close
This commit is contained in:
parent
cdad1eaa9c
commit
1a7e75036b
@ -282,6 +282,7 @@ static int base_close(esp_transport_handle_t t)
|
||||
transport_esp_tls_t *ssl = ssl_get_context_data(t);
|
||||
if (ssl && ssl->ssl_initialized) {
|
||||
ret = esp_tls_conn_destroy(ssl->tls);
|
||||
ssl->tls = NULL;
|
||||
ssl->conn_state = TRANS_SSL_INIT;
|
||||
ssl->ssl_initialized = false;
|
||||
ssl->sockfd = INVALID_SOCKET;
|
||||
|
Loading…
Reference in New Issue
Block a user