Skip to content

Commit 9cca571

Browse files
Merge pull request #6399 from bigbrett/zd16083-ocsp-double-free
fix double free in InitOCSPRequest
2 parents bebf4f6 + 46dce4b commit 9cca571

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

wolfcrypt/src/asn.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35260,6 +35260,7 @@ int InitOcspRequest(OcspRequest* req, DecodedCert* cert, byte useNonce,
3526035260
DYNAMIC_TYPE_OCSP_REQUEST);
3526135261
if (req->url == NULL) {
3526235262
XFREE(req->serial, req->heap, DYNAMIC_TYPE_OCSP);
35263+
req->serial = NULL;
3526335264
return MEMORY_E;
3526435265
}
3526535266

0 commit comments

Comments
 (0)