diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 085c7a440..65fd29d41 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -15193,6 +15193,7 @@ int wc_SetIssuerRaw(Cert* cert, const byte* der, int derSz) if ((((DecodedCert*)cert->decodedCert)->subjectRaw) && (((DecodedCert*)cert->decodedCert)->subjectRawLen <= (int)sizeof(CertName))) { + /* Copy the subject to the issuer field */ XMEMCPY(cert->issRaw, ((DecodedCert*)cert->decodedCert)->subjectRaw, ((DecodedCert*)cert->decodedCert)->subjectRawLen);