From 24fbd1f724675d9760a9a1fb4c7e6e6ab8990859 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Fri, 2 May 2025 09:27:15 +0200 Subject: [PATCH] BUG/MINOR: acme: reinit the retries only at next request The retries were reinitialized incorrectly, it must be reinit only when we didn't retry. So any valid response would reinit the retries number. --- src/acme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acme.c b/src/acme.c index 97885e5c6..139d2ad34 100644 --- a/src/acme.c +++ b/src/acme.c @@ -1927,7 +1927,6 @@ re: /* this is called after initializing a request */ MT_LIST_UNLOCK_FULL(&ctx->el, tmp); - ctx->retries = ACME_RETRY; ctx->http_state = http_st; ctx->state = st; task->expire = TICK_ETERNITY; @@ -1936,6 +1935,7 @@ re: nextreq: /* this is called when changing step in the state machine */ http_st = ACME_HTTP_REQ; + ctx->retries = ACME_RETRY; /* reinit the retries */ goto re; /* optimize by not leaving the task for the next httpreq to init */ retry: