Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3537506c authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Rework some code so that it works the way it was supposed to work.

parent 94f70cbb
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -236,8 +236,9 @@ class CertificateValidatorCache {
                }
            }

            if (secureHash != null) {
                int hashLength = secureHash.length;
            if (secureHash != null && 0 < hashLength) {
                if (0 < hashLength) {
                    if (hashLength == mHash.length) {
                        for (int i = 0; i < hashLength; ++i) {
                            if (secureHash[i] != mHash[i]) {
@@ -247,6 +248,7 @@ class CertificateValidatorCache {
                        return true;
                    }
                }
            }

            return false;
        }