mirror of https://github.com/apache/activemq.git
[AMQ-8445] Fix SSLParameters set in the SSL transport
(cherry picked from commit c2e2c818b5
)
This commit is contained in:
parent
6a25d654f2
commit
e52b1bd0ed
|
@ -129,7 +129,11 @@ public class SslTransport extends TcpTransport {
|
|||
sslParams.setEndpointIdentificationAlgorithm("HTTPS");
|
||||
}
|
||||
|
||||
((SSLSocket)this.socket).setSSLParameters(sslParams);
|
||||
if (remoteLocation != null || verifyHostName) {
|
||||
// AMQ-8445 only set SSLParameters if it has been populated before
|
||||
((SSLSocket) this.socket).setSSLParameters(sslParams);
|
||||
}
|
||||
|
||||
super.initialiseSocket(sock);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue