From fd275f567d4967de1ad2f8b3d34eee775b950961 Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 8 Mar 2011 21:32:58 +0000 Subject: [PATCH] r1079367 was a little too enthusiastic. The "if (!initialized)" tests weren't required by the init() call are git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1079553 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java b/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java index 250281a12..cecf04190 100644 --- a/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java +++ b/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java @@ -146,6 +146,7 @@ public class JSSESocketFactory implements ServerSocketFactory, SSLUtil { public ServerSocket createSocket (int port) throws IOException { + init(); ServerSocket socket = sslProxy.createServerSocket(port); initServerSocket(socket); return socket; @@ -155,6 +156,7 @@ public class JSSESocketFactory implements ServerSocketFactory, SSLUtil { public ServerSocket createSocket (int port, int backlog) throws IOException { + init(); ServerSocket socket = sslProxy.createServerSocket(port, backlog); initServerSocket(socket); return socket; @@ -165,6 +167,7 @@ public class JSSESocketFactory implements ServerSocketFactory, SSLUtil { InetAddress ifAddress) throws IOException { + init(); ServerSocket socket = sslProxy.createServerSocket(port, backlog, ifAddress); initServerSocket(socket); -- 2.11.0