Bug 1083539: Fix dropped return value check (r=keeler)

This commit is contained in:
Monica Chew 2014-10-23 17:07:45 -07:00
parent ff236301f8
commit 37fd9e59a1

View File

@ -781,6 +781,9 @@ KeyHash(TrustDomain& trustDomain, const Input subjectPublicKeyInfo,
Reader spki;
Result rv = der::ExpectTagAndGetValueAtEnd(subjectPublicKeyInfo,
der::SEQUENCE, spki);
if (rv != Success) {
return rv;
}
// Skip AlgorithmIdentifier
rv = der::ExpectTagAndSkipValue(spki, der::SEQUENCE);