Browse Source

fix case of copying over status to existing struct

JacobBarthelmeh 1 year ago
parent
commit
7381846edb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ocsp.c

+ 1 - 1
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 */