Skip to content

Commit e94db39

Browse files
francislavoiemholt
andauthored
Fix condition
Co-authored-by: Matt Holt <[email protected]>
1 parent 293668b commit e94db39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocsp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func stapleOCSP(ctx context.Context, ocspConfig OCSPConfig, storage Storage, cer
9898
if ocspErr != nil {
9999
// For short-lived certificates, this is fine and we can ignore
100100
// logging because OCSP doesn't make much sense for them anyway.
101-
if cert.Lifetime() > 7*24*time.Hour {
101+
if cert.Lifetime() < 7*24*time.Hour {
102102
return nil
103103
}
104104
// There's nothing else we can do to get OCSP for this certificate,

0 commit comments

Comments
 (0)