diff options
author | Jack Lloyd <[email protected]> | 2016-11-22 10:14:54 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-11-23 08:31:09 -0500 |
commit | 6a3be8fa07d337b78a2d4aad5e45023fa6015ecd (patch) | |
tree | 51158afde83fe295e2296230621a0c03ecc814a2 /src/lib/x509/x509path.cpp | |
parent | af715722e5ea4802eaa5e93f1f44abc0958bf5be (diff) |
Fix popping empty container if no revocation data available
Diffstat (limited to 'src/lib/x509/x509path.cpp')
-rw-r--r-- | src/lib/x509/x509path.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/x509/x509path.cpp b/src/lib/x509/x509path.cpp index 2544d6176..d966978fa 100644 --- a/src/lib/x509/x509path.cpp +++ b/src/lib/x509/x509path.cpp @@ -161,7 +161,7 @@ PKIX::check_ocsp(const std::vector<std::shared_ptr<const X509_Certificate>>& cer } } - while(cert_status.back().empty()) + while(cert_status.size() > 0 && cert_status.back().empty()) cert_status.pop_back(); return cert_status; @@ -206,7 +206,7 @@ PKIX::check_crl(const std::vector<std::shared_ptr<const X509_Certificate>>& cert } } - while(cert_status.back().empty()) + while(cert_status.size() > 0 && cert_status.back().empty()) cert_status.pop_back(); return cert_status; |