Skip to content

Commit 7f18338

Browse files
authored
Merge pull request #7255 from ejohnstown/ocsp-date
OCSP Date Checks
2 parents e4ea265 + 52f4dcd commit 7f18338

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

wolfcrypt/src/asn.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35934,13 +35934,11 @@ static int DecodeBasicOcspResponse(byte* source, word32* ioIndex,
3593435934
if (ret == 0) {
3593535935
word32 dataIdx = 0;
3593635936
/* Decode the response data. */
35937-
if (DecodeResponseData(
35937+
ret = DecodeResponseData(
3593835938
GetASNItem_Addr(dataASN[OCSPBASICRESPASN_IDX_TBS_SEQ], source),
3593935939
&dataIdx, resp,
3594035940
GetASNItem_Length(dataASN[OCSPBASICRESPASN_IDX_TBS_SEQ], source)
35941-
) < 0) {
35942-
ret = ASN_PARSE_E;
35943-
}
35941+
);
3594435942
}
3594535943
#ifdef WC_RSA_PSS
3594635944
if (ret == 0 && (dataASN[OCSPBASICRESPASN_IDX_SIGNATURE_PARAMS].tag != 0)) {

0 commit comments

Comments
 (0)