]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
check ssl_config when re-use proxy connection
authorMrDwZ <hyk68691@hotmail.com>
Tue, 14 Dec 2021 02:46:28 +0000 (18:46 -0800)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 14 Dec 2021 13:46:10 +0000 (14:46 +0100)
lib/url.c

index 72a028574546fd3cc87a0560f985e8bf9d0f57d6..b594dcce007d860db819a12963d1d91087b6fc15 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -1298,13 +1298,12 @@ ConnectionExists(struct Curl_easy *data,
             if(check->proxy_ssl[FIRSTSOCKET].state != ssl_connection_complete)
               continue;
           }
-          else {
-            if(!Curl_ssl_config_matches(&needle->ssl_config,
-                                        &check->ssl_config))
-              continue;
-            if(check->ssl[FIRSTSOCKET].state != ssl_connection_complete)
-              continue;
-          }
+
+          if(!Curl_ssl_config_matches(&needle->ssl_config,
+                                      &check->ssl_config))
+            continue;
+          if(check->ssl[FIRSTSOCKET].state != ssl_connection_complete)
+            continue;
         }
       }
 #endif