diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index a9690383dd..498f8b9d1d 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -2749,7 +2749,10 @@ static CURLcode ossl_connect_step1(struct Curl_easy *data, /* expects length prefixed preference ordered list of protocols in wire * format */ - SSL_CTX_set_alpn_protos(backend->ctx, protocols, cur); + if(SSL_CTX_set_alpn_protos(backend->ctx, protocols, cur)) { + failf(data, "Error setting ALPN"); + return CURLE_SSL_CONNECT_ERROR; + } } #endif