mirror of
https://github.com/curl/curl.git
synced 2026-04-14 00:51:42 +08:00
parent
4cf9e87fca
commit
b56b0c078e
@ -1661,8 +1661,14 @@ static CURLcode cf_ssl_create(struct Curl_cfilter **pcf,
|
||||
|
||||
DEBUGASSERT(data->conn);
|
||||
|
||||
#ifdef CURL_DISABLE_HTTP
|
||||
/* We only support ALPN for HTTP so far. */
|
||||
DEBUGASSERT(!conn->bits.tls_enable_alpn);
|
||||
ctx = cf_ctx_new(data, NULL);
|
||||
#else
|
||||
ctx = cf_ctx_new(data, alpn_get_spec(data->state.http_neg.wanted,
|
||||
conn->bits.tls_enable_alpn));
|
||||
#endif
|
||||
if(!ctx) {
|
||||
result = CURLE_OUT_OF_MEMORY;
|
||||
goto out;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user