diff --git a/lib/url.c b/lib/url.c index c5d54d19e3..1b419a08b3 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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; }