diff options
Diffstat (limited to 'src/lib/cert/x509/x509path.cpp')
-rw-r--r-- | src/lib/cert/x509/x509path.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/cert/x509/x509path.cpp b/src/lib/cert/x509/x509path.cpp index df286cfd7..dd9df6f51 100644 --- a/src/lib/cert/x509/x509path.cpp +++ b/src/lib/cert/x509/x509path.cpp @@ -150,7 +150,7 @@ check_chain(const std::vector<X509_Certificate>& cert_path, cert_status.at(i).insert(Certificate_Status_Code::NAME_CONSTRAINT_ERROR); // Check that all subordinate certs pass the name constraint - for(int j = i; j >= 0; j--) + for(size_t j = 0; j <= i; ++j) { if(i == j && at_self_signed_root) continue; |