Skip to content

Commit f0ea8ea

Browse files
authored
Update tls.rs
1 parent cdb0b0b commit f0ea8ea

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

devolutions-gateway/src/tls.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,7 @@ pub fn check_certificate(cert: &[u8], at: time::OffsetDateTime) -> anyhow::Resul
414414

415415
if at < not_before {
416416
issues.insert(CertIssues::NOT_YET_VALID);
417-
}
418-
419-
if not_after < at {
417+
} else if not_after < at {
420418
issues.insert(CertIssues::EXPIRED);
421419
}
422420

0 commit comments

Comments
 (0)