Commit 0056575d authored by David Fuhrmann's avatar David Fuhrmann

securetransport: Call SSLClose in error paths again

parent 2ed3f86a
...@@ -636,6 +636,7 @@ static int st_ClientSessionOpen (vlc_tls_creds_t *crd, vlc_tls_t *session, ...@@ -636,6 +636,7 @@ static int st_ClientSessionOpen (vlc_tls_creds_t *crd, vlc_tls_t *session,
return VLC_SUCCESS; return VLC_SUCCESS;
error: error:
st_SessionShutdown(session, true);
st_SessionClose(session); st_SessionClose(session);
return VLC_EGENERIC; return VLC_EGENERIC;
} }
...@@ -702,6 +703,7 @@ static int st_ServerSessionOpen (vlc_tls_creds_t *crd, vlc_tls_t *session, ...@@ -702,6 +703,7 @@ static int st_ServerSessionOpen (vlc_tls_creds_t *crd, vlc_tls_t *session,
return VLC_SUCCESS; return VLC_SUCCESS;
error: error:
st_SessionShutdown(session, true);
st_SessionClose(session); st_SessionClose(session);
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
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