1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 01:06:04 +00:00
This commit is contained in:
M66B 2019-12-17 10:41:59 +01:00
parent 0dd04d74a7
commit f123ea6704

View file

@ -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;