Skip to content

Commit

Permalink
ari: Fix panic when loaded cert has no RetryAfter
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt committed Sep 5, 2024
1 parent 80bb9a8 commit aad674c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maintain.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ func (cfg *Config) storageHasNewerARI(ctx context.Context, cert Certificate) (bo
// or if the one in storage has a later RetryAfter (though I suppose
// it's not guaranteed, typically those will move forward in time)
if (!cert.ari.HasWindow() && storedCertData.RenewalInfo.HasWindow()) ||
storedCertData.RenewalInfo.RetryAfter.After(*cert.ari.RetryAfter) {
(cert.ari.RetryAfter == nil || storedCertData.RenewalInfo.RetryAfter.After(*cert.ari.RetryAfter)) {
return true, *storedCertData.RenewalInfo, nil
}
return false, acme.RenewalInfo{}, nil
Expand Down

0 comments on commit aad674c

Please sign in to comment.