Skip to content

Commit 3129e29

Browse files
Merge pull request #7353 from ejohnstown/ocsp-ext
OCSP Extension Encoding Fix
2 parents 1926e04 + 6462986 commit 3129e29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wolfcrypt/src/asn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36642,7 +36642,7 @@ word32 EncodeOcspRequestExtensions(OcspRequest* req, byte* output, word32 size)
3664236642

3664336643
CALLOC_ASNSETDATA(dataASN, ocspNonceExtASN_Length, ret, req->heap);
3664436644

36645-
if ((ret == 0) && (output != NULL)) {
36645+
if (ret == 0) {
3664636646
/* Set nonce extension OID and nonce. */
3664736647
SetASN_Buffer(&dataASN[OCSPNONCEEXTASN_IDX_EXT_OID], NonceObjId,
3664836648
sizeof(NonceObjId));

0 commit comments

Comments
 (0)