OCSP Free
Free the OCSP request when creating the response only if there is an error making the request.
This commit is contained in:
parent
0ccdefb8d0
commit
c87d6b27e2
@ -14048,8 +14048,10 @@ int CreateOcspResponse(WOLFSSL* ssl, OcspRequest** ocspRequest,
|
||||
der->length);
|
||||
}
|
||||
|
||||
if (request != NULL)
|
||||
if (request != NULL && ret != 0) {
|
||||
XFREE(request, ssl->heap, DYNAMIC_TYPE_OCSP_REQUEST);
|
||||
request = NULL;
|
||||
}
|
||||
#ifdef WOLFSSL_SMALL_STACK
|
||||
XFREE(cert, ssl->heap, DYNAMIC_TYPE_DCERT);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user