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

Commit 67fd6d50 authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by The Android Open Source Project
Browse files

am 1c9a92fd: Merge change 1690 into donut

Merge commit '1c9a92fd'

* commit '1c9a92fd':
  Rework some code so that it works the way it was supposed to work.
parents 80a538d6 1c9a92fd
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;
        }