Skip to content

Commit aad674c

Browse files
committed
ari: Fix panic when loaded cert has no RetryAfter
1 parent 80bb9a8 commit aad674c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maintain.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ func (cfg *Config) storageHasNewerARI(ctx context.Context, cert Certificate) (bo
427427
// or if the one in storage has a later RetryAfter (though I suppose
428428
// it's not guaranteed, typically those will move forward in time)
429429
if (!cert.ari.HasWindow() && storedCertData.RenewalInfo.HasWindow()) ||
430-
storedCertData.RenewalInfo.RetryAfter.After(*cert.ari.RetryAfter) {
430+
(cert.ari.RetryAfter == nil || storedCertData.RenewalInfo.RetryAfter.After(*cert.ari.RetryAfter)) {
431431
return true, *storedCertData.RenewalInfo, nil
432432
}
433433
return false, acme.RenewalInfo{}, nil

0 commit comments

Comments
 (0)