diff options
Diffstat (limited to 'src/lib')
-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; |