mirror of
https://github.com/curl/curl.git
synced 2024-12-21 06:50:10 +08:00
connect: fix https connection setup to treat ssl_mode correctly
- for HTTPS protocol, a disabled ssl should never be acceptables. Closes #10934
This commit is contained in:
parent
fb08dd9c90
commit
dd8130406e
@ -1409,9 +1409,8 @@ CURLcode Curl_conn_setup(struct Curl_easy *data,
|
||||
|
||||
#if !defined(CURL_DISABLE_HTTP) && !defined(USE_HYPER)
|
||||
if(!conn->cfilter[sockindex] &&
|
||||
conn->handler->protocol == CURLPROTO_HTTPS &&
|
||||
(ssl_mode == CURL_CF_SSL_ENABLE || ssl_mode != CURL_CF_SSL_DISABLE)) {
|
||||
|
||||
conn->handler->protocol == CURLPROTO_HTTPS) {
|
||||
DEBUGASSERT(ssl_mode != CURL_CF_SSL_DISABLE);
|
||||
result = Curl_cf_https_setup(data, conn, sockindex, remotehost);
|
||||
if(result)
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user