[vlc-commits] st: fix flawed logic
Rémi Denis-Courmont
git at videolan.org
Tue Nov 1 15:39:23 CET 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov 1 16:39:01 2016 +0200| [677948a635307904117a6f104df0ebf97b56e724] | committer: Rémi Denis-Courmont
st: fix flawed logic
Refer to fed7e7951b9cc782c27abab47760ded69360a381.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=677948a635307904117a6f104df0ebf97b56e724
---
modules/misc/securetransport.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/misc/securetransport.c b/modules/misc/securetransport.c
index 26f96f8..0802dee 100644
--- a/modules/misc/securetransport.c
+++ b/modules/misc/securetransport.c
@@ -618,7 +618,10 @@ static int st_SessionOpenCommon (vlc_tls_creds_t *crd, vlc_tls_t *tls,
static int st_ClientSessionOpen (vlc_tls_creds_t *crd, vlc_tls_t *tls,
vlc_tls_t *sock, const char *hostname,
const char *const *alpn) {
- VLC_UNUSED(alpn);
+
+ if (alpn != NULL)
+ return VLC_EGENERIC;
+
msg_Dbg(crd, "open TLS session for %s", hostname);
int ret = st_SessionOpenCommon(crd, tls, sock, false);
More information about the vlc-commits
mailing list