2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Fix uninitialized use of ca_store when building with wolfSSL.

This commit is contained in:
Todd C. Miller
2022-05-27 11:23:45 -06:00
parent 7125a9cc23
commit 15f167c3a0

View File

@@ -83,8 +83,9 @@ verify_cert_chain(SSL_CTX *ctx, const char *cert_file)
goto done;
}
#if !defined(HAVE_WOLFSSL)
if ((ca_store = SSL_CTX_get_cert_store(ctx)) != NULL)
ca_store = SSL_CTX_get_cert_store(ctx);
#ifdef X509_V_FLAG_X509_STRICT
if (ca_store != NULL)
X509_STORE_set_flags(ca_store, X509_V_FLAG_X509_STRICT);
#endif