This commit is contained in:
M66B 2019-12-17 10:41:59 +01:00
parent 0dd04d74a7
commit f123ea6704
1 changed files with 3 additions and 3 deletions

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;