You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2022/03/23 08:09:20 UTC

[httpcomponents-client] branch master updated: Fix infinite recursion in SSLConnectionSocketFactory

This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git


The following commit(s) were added to refs/heads/master by this push:
     new c395aad  Fix infinite recursion in SSLConnectionSocketFactory
c395aad is described below

commit c395aad5adb4e9ee312559937c08382ea8215e7c
Author: Ryan Schmitt <rs...@apache.org>
AuthorDate: Tue Mar 22 16:37:25 2022 -0700

    Fix infinite recursion in SSLConnectionSocketFactory
---
 .../java/org/apache/hc/client5/http/ssl/SSLConnectionSocketFactory.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/httpclient5/src/main/java/org/apache/hc/client5/http/ssl/SSLConnectionSocketFactory.java b/httpclient5/src/main/java/org/apache/hc/client5/http/ssl/SSLConnectionSocketFactory.java
index 59a8df5..03a7aa6 100644
--- a/httpclient5/src/main/java/org/apache/hc/client5/http/ssl/SSLConnectionSocketFactory.java
+++ b/httpclient5/src/main/java/org/apache/hc/client5/http/ssl/SSLConnectionSocketFactory.java
@@ -257,7 +257,7 @@ public class SSLConnectionSocketFactory implements LayeredConnectionSocketFactor
             final String target,
             final int port,
             final HttpContext context) throws IOException {
-        return createLayeredSocket(socket, target, port, context);
+        return createLayeredSocket(socket, target, port, null, context);
     }
 
     @Override