]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
url: fix the SSH connection reuse check
authorDaniel Stenberg <daniel@haxx.se>
Fri, 10 Mar 2023 07:22:51 +0000 (08:22 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 10 Mar 2023 16:54:32 +0000 (17:54 +0100)
Reported-by: Harry Sintonen
Closes #10735

lib/url.c

index c5d54d19e3dd2ccab86fb67c59636bf6360c6760..1b419a08b371ee5a8c93e4f3cfef9ecefe9d1b08 100644 (file)
--- 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;
       }