am 1c9a92fd: Merge change 1690 into donut
Merge commit '1c9a92fd9fbe192f24e53c26cddeab401cefb108' * commit '1c9a92fd9fbe192f24e53c26cddeab401cefb108': Rework some code so that it works the way it was supposed to work.
This commit is contained in:
committed by
The Android Open Source Project
commit
67fd6d50af
@@ -236,15 +236,17 @@ class CertificateValidatorCache {
|
||||
}
|
||||
}
|
||||
|
||||
int hashLength = secureHash.length;
|
||||
if (secureHash != null && 0 < hashLength) {
|
||||
if (hashLength == mHash.length) {
|
||||
for (int i = 0; i < hashLength; ++i) {
|
||||
if (secureHash[i] != mHash[i]) {
|
||||
return false;
|
||||
if (secureHash != null) {
|
||||
int hashLength = secureHash.length;
|
||||
if (0 < hashLength) {
|
||||
if (hashLength == mHash.length) {
|
||||
for (int i = 0; i < hashLength; ++i) {
|
||||
if (secureHash[i] != mHash[i]) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user