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,