Commit 03581271 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

https: shutdown the TLS session explicitly

parent 09854f8c
......@@ -125,6 +125,7 @@ static void *vlc_h1_stream_fatal(struct vlc_h1_conn *conn)
if (conn->conn.tls != NULL)
{
msg_Dbg(CO(conn), "connection failed");
vlc_tls_Shutdown(conn->conn.tls, true);
vlc_tls_Close(conn->conn.tls);
conn->conn.tls = NULL;
}
......@@ -281,7 +282,10 @@ static void vlc_h1_conn_destroy(struct vlc_h1_conn *conn)
assert(conn->released);
if (conn->conn.tls != NULL)
{
vlc_tls_Shutdown(conn->conn.tls, true);
vlc_tls_Close(conn->conn.tls);
}
free(conn);
}
......
......@@ -657,6 +657,8 @@ static void vlc_h2_conn_destroy(struct vlc_h2_conn *conn)
vlc_mutex_destroy(&conn->lock);
vlc_h2_output_destroy(conn->out);
vlc_tls_Shutdown(conn->conn.tls, true);
vlc_tls_Close(conn->conn.tls);
free(conn);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment