Merge pull request #6399 from bigbrett/zd16083-ocsp-double-free

fix double free in InitOCSPRequest
This commit is contained in:
JacobBarthelmeh
2023-05-12 13:50:54 -06:00
committed by GitHub

View File

@ -35260,6 +35260,7 @@ int InitOcspRequest(OcspRequest* req, DecodedCert* cert, byte useNonce,
DYNAMIC_TYPE_OCSP_REQUEST);
if (req->url == NULL) {
XFREE(req->serial, req->heap, DYNAMIC_TYPE_OCSP);
req->serial = NULL;
return MEMORY_E;
}