url: fix the SSH connection reuse check

Reported-by: Harry Sintonen
Closes #10735
This commit is contained in:
Daniel Stenberg 2023-03-10 08:22:51 +01:00
parent fcee070cb1
commit af369db4d3
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1315,7 +1315,7 @@ ConnectionExists(struct Curl_easy *data,
(data->state.httpwant < CURL_HTTP_VERSION_3))))
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))
continue;
}