CRL extensions are optional so ext errors should be skipped

This commit is contained in:
Juliusz Sosinowicz
2019-12-30 19:08:59 +01:00
parent 38f466bdfe
commit 1bf6eb466f

View File

@ -16130,8 +16130,8 @@ int ParseCRL(DecodedCRL* dcrl, const byte* buff, word32 sz, void* cm)
if (ParseCRL_CertList(dcrl, buff, &idx, idx + len) < 0)
return ASN_PARSE_E;
if (ParseCRL_Extensions(dcrl, buff, &idx, idx + len) < 0)
return ASN_PARSE_E;
/* CRL Extensions optional, ignoring errors */
ParseCRL_Extensions(dcrl, buff, &idx, idx + len);
idx = dcrl->sigIndex;