Unified · Split
| @@ -962,7 +962,11 @@ static int tls_open(URLContext *h, const char *uri, int flags, AVDictionary **op · 961 unmodified lines | |||
| 962 | ret = AVERROR_EXTERNAL; | 962 | ret = AVERROR_EXTERNAL; |
| 963 | goto fail; | 963 | goto fail; |
| 964 | } | 964 | } |
| 965 | SSL_set_tlsext_host_name(p->ssl, c->host); | 965 | if (!SSL_set_tlsext_host_name(p->ssl, c->host)) { |
| 966 | av_log(h, AV_LOG_ERROR, "Failed to set hostname for SNI: %s\n", openssl_get_error(p)); | ||
| 967 | ret = AVERROR_EXTERNAL; | ||
| 968 | goto fail; | ||
| 969 | } | ||
| 966 | } | 970 | } |
| 967 | ret = c->listen ? SSL_accept(p->ssl) : SSL_connect(p->ssl); | 971 | ret = c->listen ? SSL_accept(p->ssl) : SSL_connect(p->ssl); |
| 968 | if (ret == 0) { | 972 | if (ret == 0) { |