From f123ea6704ece4e4669c61c594adad6319bfa18e Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 17 Dec 2019 10:41:59 +0100 Subject: [PATCH] Oops --- app/src/main/java/eu/faircode/email/MailService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/MailService.java b/app/src/main/java/eu/faircode/email/MailService.java index 53d584185a..0867ade85b 100644 --- a/app/src/main/java/eu/faircode/email/MailService.java +++ b/app/src/main/java/eu/faircode/email/MailService.java @@ -109,10 +109,10 @@ public class MailService implements AutoCloseable { boolean trusted = false; String name = getDnsName(certificate); - if (name != null && matches(server, name)) { - Log.e("Certificate mismatch server=" + server + " name=" + name); + if (name != null && matches(server, name)) trusted = true; - } + else + Log.e("Certificate mismatch server=" + server + " name=" + name); if (getFingerPrint(certificate).equals(trustedFingerprint)) trusted = true;