mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-13 17:44:48 +02:00
add ret check before assigning row value
This commit is contained in:
@@ -6041,11 +6041,13 @@ int AddCA(WOLFSSL_CERT_MANAGER* cm, DerBuffer** pDer, int type, int verify)
|
|||||||
if (ret == 0 && signer != NULL) {
|
if (ret == 0 && signer != NULL) {
|
||||||
ret = FillSigner(signer, cert, type, der);
|
ret = FillSigner(signer, cert, type, der);
|
||||||
|
|
||||||
|
if (ret == 0){
|
||||||
#ifndef NO_SKID
|
#ifndef NO_SKID
|
||||||
row = HashSigner(signer->subjectKeyIdHash);
|
row = HashSigner(signer->subjectKeyIdHash);
|
||||||
#else
|
#else
|
||||||
row = HashSigner(signer->subjectNameHash);
|
row = HashSigner(signer->subjectNameHash);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
#if defined(WOLFSSL_RENESAS_TSIP_TLS) || defined(WOLFSSL_RENESAS_FSPSM_TLS)
|
#if defined(WOLFSSL_RENESAS_TSIP_TLS) || defined(WOLFSSL_RENESAS_FSPSM_TLS)
|
||||||
/* Verify CA by TSIP so that generated tsip key is going to */
|
/* Verify CA by TSIP so that generated tsip key is going to */
|
||||||
|
Reference in New Issue
Block a user