1From af369db4d3833272b8ed443f7fcc2e757a0872eb Mon Sep 17 00:00:00 2001 2From: Daniel Stenberg <daniel@haxx.se> 3Date: Fri, 10 Mar 2023 08:22:51 +0100 4Subject: [PATCH] url: fix the SSH connection reuse check 5 6Reported-by: Harry Sintonen 7Closes #10735 8--- 9 lib/url.c | 2 +- 10 1 file changed, 1 insertion(+), 1 deletion(-) 11 12--- a/lib/url.c 13+++ b/lib/url.c 14@@ -1373,7 +1373,7 @@ ConnectionExists(struct Curl_easy *data, 15 (data->state.httpwant < CURL_HTTP_VERSION_2_0)) 16 continue; 17 18- if(get_protocol_family(needle->handler) == PROTO_FAMILY_SSH) { 19+ if(get_protocol_family(needle->handler) & PROTO_FAMILY_SSH) { 20 if(!ssh_config_matches(needle, check)) 21 continue; 22 } 23