diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-11-13 11:17:02 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-11-13 11:24:57 +0100 |
| commit | f5f1ae4c166b99409ca36ab14d53a9bafb001c49 (patch) | |
| tree | 6e2020df8eff499f55f05b24a2697c4c1a00d304 | |
| parent | 52323f6a3343e4ad3f9058f07292d74d2de352f1 (diff) | |
Cleanup: lose a temporary variable.
| -rw-r--r-- | src/certificate_chain.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/certificate_chain.cc b/src/certificate_chain.cc index c2f5857d..0afc7e62 100644 --- a/src/certificate_chain.cc +++ b/src/certificate_chain.cc @@ -489,9 +489,7 @@ CertificateChain::chain_valid(List const & chain, string* error) const throw MiscError ("could not initialise X509 store context"); } - int const v = X509_verify_cert (ctx); - - if (v != 1) { + if (X509_verify_cert(ctx) != 1) { X509_STORE_free (store); if (error) { *error = X509_verify_cert_error_string(X509_STORE_CTX_get_error(ctx)); |
