aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/cert
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-10-17 03:39:24 -0400
committerJack Lloyd <[email protected]>2016-10-17 03:39:24 -0400
commit8f1ecd838eb05ad71bcfeb8cc59873c6f4f903ba (patch)
tree93a6185d5b97fa6533b338031191ab3f1a2d6efa /src/lib/cert
parent1fbb61c3f212f180066b5bffb28e68808df1ad2e (diff)
Maintainer mode fixes
Diffstat (limited to 'src/lib/cert')
-rw-r--r--src/lib/cert/x509/x509path.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/cert/x509/x509path.cpp b/src/lib/cert/x509/x509path.cpp
index 29853bb4a..a0cae2c93 100644
--- a/src/lib/cert/x509/x509path.cpp
+++ b/src/lib/cert/x509/x509path.cpp
@@ -29,9 +29,11 @@ find_issuing_cert(const X509_Certificate& cert,
const X509_DN issuer_dn = cert.issuer_dn();
const std::vector<byte> auth_key_id = cert.authority_key_id();
- std::shared_ptr<const X509_Certificate> c = end_certs.find_cert(issuer_dn, auth_key_id);
- if(c && *c != cert)
- return c;
+ if(std::shared_ptr<const X509_Certificate> c = end_certs.find_cert(issuer_dn, auth_key_id))
+ {
+ if(*c != cert)
+ return c;
+ }
for(size_t i = 0; i != certstores.size(); ++i)
{