Merge pull request #7353 from ejohnstown/ocsp-ext

OCSP Extension Encoding Fix
This commit is contained in:
JacobBarthelmeh 2024-03-20 03:00:27 +07:00 committed by GitHub
commit 3129e29a19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36642,7 +36642,7 @@ word32 EncodeOcspRequestExtensions(OcspRequest* req, byte* output, word32 size)
CALLOC_ASNSETDATA(dataASN, ocspNonceExtASN_Length, ret, req->heap);
if ((ret == 0) && (output != NULL)) {
if (ret == 0) {
/* Set nonce extension OID and nonce. */
SetASN_Buffer(&dataASN[OCSPNONCEEXTASN_IDX_EXT_OID], NonceObjId,
sizeof(NonceObjId));