sb fixes for crl and ocsp

This commit is contained in:
toddouska
2013-02-20 15:26:22 -08:00
parent 04d0c581b1
commit b2b45d3f4a
4 changed files with 18 additions and 6 deletions

View File

@@ -4295,7 +4295,8 @@ static int DecodeSingleResponse(byte* source,
break;
case (ASN_CONTEXT_SPECIFIC | ASN_CONSTRUCTED | CERT_REVOKED):
cs->status = CERT_REVOKED;
GetLength(source, &idx, &length, size);
if (GetLength(source, &idx, &length, size) < 0)
return ASN_PARSE_E;
idx += length;
break;
case (ASN_CONTEXT_SPECIFIC | CERT_UNKNOWN):