From 9f1888297340552211a7dc68ca4f6bbbd7af4325 Mon Sep 17 00:00:00 2001 From: David Cowden Date: Mon, 11 May 2020 21:25:31 -0700 Subject: [PATCH] acme/challenge: Copy retry information on clone When cloning a challenge, deeply clone the retry field if it is not nil. --- acme/challenge.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/acme/challenge.go b/acme/challenge.go index e2e9b16d..bf398678 100644 --- a/acme/challenge.go +++ b/acme/challenge.go @@ -240,8 +240,10 @@ func (bc *baseChallenge) save(db nosql.DB, old challenge) error { func (bc *baseChallenge) clone() *baseChallenge { u := *bc - r := *bc.Retry - u.Retry = &r + if bc.Retry != nil { + r := *bc.Retry + u.Retry = &r + } return &u }