[vlc-commits] securetransport: Call SSLClose in error paths again
David Fuhrmann
git at videolan.org
Mon Jan 4 17:12:51 CET 2016
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Mon Jan 4 17:12:11 2016 +0100| [0056575dab86081b4232e0abdf1023c2162ba432] | committer: David Fuhrmann
securetransport: Call SSLClose in error paths again
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0056575dab86081b4232e0abdf1023c2162ba432
---
modules/misc/securetransport.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/misc/securetransport.c b/modules/misc/securetransport.c
index 3f21a14..674b9b8 100644
--- a/modules/misc/securetransport.c
+++ b/modules/misc/securetransport.c
@@ -636,6 +636,7 @@ static int st_ClientSessionOpen (vlc_tls_creds_t *crd, vlc_tls_t *session,
return VLC_SUCCESS;
error:
+ st_SessionShutdown(session, true);
st_SessionClose(session);
return VLC_EGENERIC;
}
@@ -702,6 +703,7 @@ static int st_ServerSessionOpen (vlc_tls_creds_t *crd, vlc_tls_t *session,
return VLC_SUCCESS;
error:
+ st_SessionShutdown(session, true);
st_SessionClose(session);
return VLC_EGENERIC;
}
More information about the vlc-commits
mailing list