fix memory leak for multiple status

This commit is contained in:
Takashi Kojo
2019-02-28 07:34:26 +09:00
parent 2e41d25bca
commit 9e93bd1000

View File

@ -341,6 +341,7 @@ static int CheckResponse(WOLFSSL_OCSP* ocsp, byte* response, int responseSz,
}
/* Replace existing certificate entry with updated */
newStatus->next = status->next;
XMEMCPY(status, newStatus, sizeof(CertStatus));
}
else {