mirror of
https://github.com/curl/curl.git
synced 2024-12-03 06:20:31 +08:00
url: fix the SSH connection reuse check
Reported-by: Harry Sintonen Closes #10735
This commit is contained in:
parent
fcee070cb1
commit
af369db4d3
@ -1315,7 +1315,7 @@ ConnectionExists(struct Curl_easy *data,
|
|||||||
(data->state.httpwant < CURL_HTTP_VERSION_3))))
|
(data->state.httpwant < CURL_HTTP_VERSION_3))))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(get_protocol_family(needle->handler) == PROTO_FAMILY_SSH) {
|
if(get_protocol_family(needle->handler) & PROTO_FAMILY_SSH) {
|
||||||
if(!ssh_config_matches(needle, check))
|
if(!ssh_config_matches(needle, check))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user