summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/com')
-rw-r--r--src/com/isode/stroke/tls/ServerIdentityVerifier.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/isode/stroke/tls/ServerIdentityVerifier.java b/src/com/isode/stroke/tls/ServerIdentityVerifier.java
index 3dcd855..20caae8 100644
--- a/src/com/isode/stroke/tls/ServerIdentityVerifier.java
+++ b/src/com/isode/stroke/tls/ServerIdentityVerifier.java
@@ -21,6 +21,9 @@ public class ServerIdentityVerifier {
}
public boolean certificateVerifies(Certificate certificate) {
+ if (certificate==null) {
+ return false;
+ }
boolean hasSAN = false;
// DNS names