mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
Fix from review
This commit is contained in:
@@ -15193,6 +15193,7 @@ int wc_SetIssuerRaw(Cert* cert, const byte* der, int derSz)
|
|||||||
if ((((DecodedCert*)cert->decodedCert)->subjectRaw) &&
|
if ((((DecodedCert*)cert->decodedCert)->subjectRaw) &&
|
||||||
(((DecodedCert*)cert->decodedCert)->subjectRawLen <=
|
(((DecodedCert*)cert->decodedCert)->subjectRawLen <=
|
||||||
(int)sizeof(CertName))) {
|
(int)sizeof(CertName))) {
|
||||||
|
/* Copy the subject to the issuer field */
|
||||||
XMEMCPY(cert->issRaw,
|
XMEMCPY(cert->issRaw,
|
||||||
((DecodedCert*)cert->decodedCert)->subjectRaw,
|
((DecodedCert*)cert->decodedCert)->subjectRaw,
|
||||||
((DecodedCert*)cert->decodedCert)->subjectRawLen);
|
((DecodedCert*)cert->decodedCert)->subjectRawLen);
|
||||||
|
Reference in New Issue
Block a user