summaryrefslogtreecommitdiffstats
path: root/CryptoPkg/Library/TlsLib/TlsConfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'CryptoPkg/Library/TlsLib/TlsConfig.c')
-rw-r--r--CryptoPkg/Library/TlsLib/TlsConfig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/CryptoPkg/Library/TlsLib/TlsConfig.c b/CryptoPkg/Library/TlsLib/TlsConfig.c
index 5adb1976e3..f9333165a9 100644
--- a/CryptoPkg/Library/TlsLib/TlsConfig.c
+++ b/CryptoPkg/Library/TlsLib/TlsConfig.c
@@ -701,7 +701,6 @@ TlsSetCaCertificate (
TLS_CONNECTION *TlsConn;
SSL_CTX *SslCtx;
INTN Ret;
- UINTN ErrorCode;
BioCert = NULL;
Cert = NULL;
@@ -753,6 +752,8 @@ TlsSetCaCertificate (
//
Ret = X509_STORE_add_cert (X509Store, Cert);
if (Ret != 1) {
+ unsigned long ErrorCode;
+
ErrorCode = ERR_peek_last_error ();
//
// Ignore "already in table" errors