[vlc-commits] https: fix connection failure handling
Rémi Denis-Courmont
git at videolan.org
Mon Dec 14 19:05:06 CET 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Dec 14 20:00:16 2015 +0200| [4e668bca31b2e5485dd759b812c161129f38387e] | committer: Rémi Denis-Courmont
https: fix connection failure handling
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4e668bca31b2e5485dd759b812c161129f38387e
---
modules/access/http/connmgr.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/access/http/connmgr.c b/modules/access/http/connmgr.c
index 3d4f9b4..204e014 100644
--- a/modules/access/http/connmgr.c
+++ b/modules/access/http/connmgr.c
@@ -174,6 +174,9 @@ struct vlc_http_msg *vlc_https_request(struct vlc_http_mgr *mgr,
bool http2;
vlc_tls_t *tls = vlc_https_connect_i11e(mgr->creds, host, port, &http2);
+ if (tls == NULL)
+ return NULL;
+
if (http2)
{
struct vlc_h2_conn *conn2 = vlc_h2_conn_create(tls);
More information about the vlc-commits
mailing list