Skip to content

Commit

Permalink
ZOOKEEPER-3194: Quorum TLS - fix copy/paste bug in ZKTrustManager
Browse files Browse the repository at this point in the history
Fix an obvious copy/paste bug. Tested by making sure ZKTrustManagerTest still passes.

Author: Ilya Maykov <ilyam@fb.com>

Reviewers: andor@apache.org

Closes #709 from ivmaykov/ZOOKEEPER-3194
  • Loading branch information
ivmaykov authored and anmolnar committed Nov 27, 2018
1 parent 64104ea commit a109b8b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -85,7 +85,7 @@ public void checkServerTrusted(X509Certificate[] chain, String authType, Socket

@Override
public void checkClientTrusted(X509Certificate[] chain, String authType, SSLEngine engine) throws CertificateException {
x509ExtendedTrustManager.checkServerTrusted(chain, authType, engine);
x509ExtendedTrustManager.checkClientTrusted(chain, authType, engine);
if (clientHostnameVerificationEnabled) {
try {
performHostVerification(InetAddress.getByName(engine.getPeerHost()), chain[0]);
Expand Down

0 comments on commit a109b8b

Please sign in to comment.