mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-22 13:09:46 +01:00
Remove useless check
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
71ca7914b4
commit
79ac925b1d
@ -177,7 +177,7 @@ public class MagicTrustManager implements X509TrustManager {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
X509Certificate[] certificates = (X509Certificate[]) sslSession.getPeerCertificates();
|
X509Certificate[] certificates = (X509Certificate[]) sslSession.getPeerCertificates();
|
||||||
if (certificates.length > 0 && certificates[0] != null && isCertInTrustStore(certificates, s)) {
|
if (certificates.length > 0 && isCertInTrustStore(certificates, s)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} catch (SSLPeerUnverifiedException e) {
|
} catch (SSLPeerUnverifiedException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user