diff options
author | Stefan _ <sfan5@live.de> | 2018-02-21 17:57:00 +0000 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-03-07 02:06:09 +0200 |
commit | 7c39305a174899cbf924ed013c89715b8bddc442 (patch) | |
tree | bc3b303c805c4d673df37a4dd5d30516bacb58c2 /libavformat/tls_libtls.c | |
parent | 56912555bc1921420f5271159b0c20034ab4209e (diff) | |
download | ffmpeg-7c39305a174899cbf924ed013c89715b8bddc442.tar.gz |
libavformat/tls_libtls: pass numeric hostnames to tls_connect_cbs()
Numeric hosts in certificates are not very common, but supported by LibreSSL.
Forward the IP address to make verification work in this case.
Fixes ticket #7029
Diffstat (limited to 'libavformat/tls_libtls.c')
-rw-r--r-- | libavformat/tls_libtls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tls_libtls.c b/libavformat/tls_libtls.c index 1321f79229..ba83b56ffe 100644 --- a/libavformat/tls_libtls.c +++ b/libavformat/tls_libtls.c @@ -119,7 +119,7 @@ static int ff_tls_open(URLContext *h, const char *uri, int flags, AVDictionary * if (!c->listen) { ret = tls_connect_cbs(p->ctx, tls_read_callback, tls_write_callback, - c->tcp, !c->numerichost ? c->host : NULL); + c->tcp, c->host); } else { struct tls *ctx_new; ret = tls_accept_cbs(p->ctx, &ctx_new, tls_read_callback, |