From 7381846edb59acfd9df43c5b1b73daa4a9d3fd3a Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Tue, 25 Oct 2022 15:33:17 -0700 Subject: [PATCH] fix case of copying over status to existing struct --- src/ocsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ocsp.c b/src/ocsp.c index 5d021bc13..5d2650a32 100644 --- a/src/ocsp.c +++ b/src/ocsp.c @@ -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 */