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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user