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

Commit 1c9a92fd authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 1690 into donut

* changes:
  Rework some code so that it works the way it was supposed to work.
parents 9ea92317 3537506c
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;
        }