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