mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
transport_ssl: reset state on connection closure
For url redirection cases (HTTP status 301/302), internal transport ssl connection state must be reinitialized for successful (new) connection on updated url. Closes https://github.com/espressif/esp-idf/issues/4598
This commit is contained in:
parent
433c1c9ee1
commit
49ce8d3fe5
@ -171,6 +171,7 @@ static int ssl_close(esp_transport_handle_t t)
|
||||
transport_ssl_t *ssl = esp_transport_get_context_data(t);
|
||||
if (ssl->ssl_initialized) {
|
||||
esp_tls_conn_delete(ssl->tls);
|
||||
ssl->conn_state = TRANS_SSL_INIT;
|
||||
ssl->ssl_initialized = false;
|
||||
}
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user