Skip to content

Commit

Permalink
Check correct type before casting.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherSchultz committed Aug 31, 2018
1 parent cd5d461 commit 2d84895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/java/net/christopherschultz/ssltest/SSLTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ else if(!hideRejects || !"Rejected".equals(status))
}
}

if(certs instanceof X509TrustManager[]
if(certs instanceof X509Certificate[]
&& checkTrust((X509Certificate[])certs, trustManagers))
System.out.println("Certificate chain is trusted");
else
Expand Down

0 comments on commit 2d84895

Please sign in to comment.