From 53f8cfcc704843f8284035b1552ef0eb8b48aa5f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 10 Mar 2023 08:22:51 +0100 Subject: [PATCH] [PATCH] url: fix the SSH connection reuse check Reported-by: Harry Sintonen Closes #10735 Gbp-Pq: Name CVE-2023-27538.patch --- lib/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/url.c b/lib/url.c index 1bb93df9..747200e8 100644 --- a/lib/url.c +++ b/lib/url.c @@ -1300,7 +1300,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; } -- 2.30.2