From: Daniel Stenberg Date: Fri, 10 Mar 2023 07:22:51 +0000 (+0100) Subject: url: fix the SSH connection reuse check X-Git-Tag: curl-8_0_0~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=af369db4d3833272b8ed443f7fcc2e757a0872eb;p=thirdparty%2Fcurl.git url: fix the SSH connection reuse check Reported-by: Harry Sintonen Closes #10735 --- 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; }