Fix issue

This commit is contained in:
Pierre HUBERT 2024-06-28 19:39:07 +02:00
parent aa97d28657
commit 24f8f8f842

View File

@ -237,7 +237,7 @@ fn refresh_crl(d: &CertData) -> anyhow::Result<()> {
// Check if revocation is un-needed // Check if revocation is un-needed
let next_update = crl.next_update().ok_or(PKIError::MissingCRLNextUpdate)?; let next_update = crl.next_update().ok_or(PKIError::MissingCRLNextUpdate)?;
if next_update.compare(Asn1Time::days_from_now(0)?.as_ref())? < Ordering::Greater { if next_update.compare(Asn1Time::days_from_now(0)?.as_ref())? == Ordering::Greater {
return Ok(()); return Ok(());
} }