fix case of copying over status to existing struct

This commit is contained in:
JacobBarthelmeh
2022-10-25 15:33:17 -07:00
parent af518f8c86
commit 7381846edb

View File

@@ -363,7 +363,7 @@ int CheckOcspResponse(WOLFSSL_OCSP *ocsp, byte *response, int responseSz,
/* Replace existing certificate entry with updated */
newSingle->status->next = status->next;
XMEMCPY(status, newSingle->status, sizeof(CertStatus));
XMEMCPY(status, ocspResponse->single->status, sizeof(CertStatus));
}
else {
/* Save new certificate entry */