check ssl_config when re-use proxy connection

This commit is contained in:
MrDwZ 2021-12-13 18:46:28 -08:00 committed by Daniel Stenberg
parent 9d0d16d435
commit 1cdfdcde3b

View File

@ -1298,13 +1298,12 @@ ConnectionExists(struct Curl_easy *data,
if(check->proxy_ssl[FIRSTSOCKET].state != ssl_connection_complete) if(check->proxy_ssl[FIRSTSOCKET].state != ssl_connection_complete)
continue; continue;
} }
else {
if(!Curl_ssl_config_matches(&needle->ssl_config, if(!Curl_ssl_config_matches(&needle->ssl_config,
&check->ssl_config)) &check->ssl_config))
continue; continue;
if(check->ssl[FIRSTSOCKET].state != ssl_connection_complete) if(check->ssl[FIRSTSOCKET].state != ssl_connection_complete)
continue; continue;
}
} }
} }
#endif #endif