2023-03-24 12:28:18 +00:00
|
|
|
From 133e25afe4b8961b9c12334ee0bd3374db9a1fd4 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Daniel Stenberg <daniel@haxx.se>
|
|
|
|
Date: Fri, 10 Mar 2023 08:22:51 +0100
|
|
|
|
Subject: [PATCH] url: fix the SSH connection reuse check
|
|
|
|
|
|
|
|
Reported-by: Harry Sintonen
|
|
|
|
Closes #10735
|
|
|
|
|
|
|
|
Upstream-commit: af369db4d3833272b8ed443f7fcc2e757a0872eb
|
|
|
|
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
|
|
|
---
|
|
|
|
lib/url.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/lib/url.c b/lib/url.c
|
|
|
|
index 0c31486..3b11b7e 100644
|
|
|
|
--- a/lib/url.c
|
|
|
|
+++ b/lib/url.c
|
2023-04-12 14:34:17 +00:00
|
|
|
@@ -1330,7 +1330,7 @@ ConnectionExists(struct Curl_easy *data,
|
|
|
|
if(needle->gssapi_delegation != check->gssapi_delegation)
|
2023-03-24 12:28:18 +00:00
|
|
|
continue;
|
|
|
|
|
2023-04-12 14:34:17 +00:00
|
|
|
- if(get_protocol_family(needle->handler) == PROTO_FAMILY_SSH) {
|
|
|
|
+ if(get_protocol_family(needle->handler) & PROTO_FAMILY_SSH) {
|
2023-03-24 12:28:18 +00:00
|
|
|
if(!ssh_config_matches(needle, check))
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
--
|
|
|
|
2.39.2
|
|
|
|
|