Skip to content

Commit

Permalink
Follow-up from last commit: return input cert, not an empty one
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt committed Jan 14, 2025
1 parent efce150 commit c69ed90
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions maintain.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ func (cfg *Config) updateARI(ctx context.Context, cert Certificate, logger *zap.
updatedCert, ok = cfg.certCache.cache[cert.hash]
if !ok {
cfg.certCache.mu.Unlock()
updatedCert = cert // return input cert, not an empty one
logger.Debug("obtained ARI update, but certificate no longer in cache; discarding ARI update",
zap.Time("selected_time", newARI.SelectedTime),
zap.Timep("next_update", newARI.RetryAfter),
Expand Down

0 comments on commit c69ed90

Please sign in to comment.