mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Use local int lastErr instead of args->lastErr.
This commit is contained in:
@ -13609,7 +13609,7 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
|
|||||||
(defined(WOLFSSL_CERT_REQ) || defined(WOLFSSL_CERT_EXT)) && \
|
(defined(WOLFSSL_CERT_REQ) || defined(WOLFSSL_CERT_EXT)) && \
|
||||||
!defined(NO_FILESYSTEM) && !defined(NO_WOLFSSL_DIR)
|
!defined(NO_FILESYSTEM) && !defined(NO_WOLFSSL_DIR)
|
||||||
if (ret == ASN_NO_SIGNER_E || ret == ASN_SELF_SIGNED_E) {
|
if (ret == ASN_NO_SIGNER_E || ret == ASN_SELF_SIGNED_E) {
|
||||||
args->lastErr = ret; /* save error from last time */
|
int lastErr = ret; /* save error from last time */
|
||||||
WOLFSSL_MSG("try to load certificate if hash dir is set");
|
WOLFSSL_MSG("try to load certificate if hash dir is set");
|
||||||
ret = LoadCertByIssuer(SSL_STORE(ssl),
|
ret = LoadCertByIssuer(SSL_STORE(ssl),
|
||||||
(WOLFSSL_X509_NAME*)args->dCert->issuerName,
|
(WOLFSSL_X509_NAME*)args->dCert->issuerName,
|
||||||
@ -13623,7 +13623,7 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
|
|||||||
&subjectHash, &alreadySigner);
|
&subjectHash, &alreadySigner);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ret = args->lastErr; /* restore error */
|
ret = lastErr; /* restore error */
|
||||||
WOLFSSL_ERROR_VERBOSE(ret);
|
WOLFSSL_ERROR_VERBOSE(ret);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user