From 2098513a189c78d410af6cb823618bac18546af4 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Fri, 20 Mar 2026 14:33:24 +0100 Subject: [PATCH] Avoid an endless loop if an ACME account cannot be verified --- src/md_acme_acct.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/md_acme_acct.c b/src/md_acme_acct.c index f3e043e8..10caa15f 100644 --- a/src/md_acme_acct.c +++ b/src/md_acme_acct.c @@ -358,11 +358,16 @@ static apr_status_t acct_find_and_verify(md_store_t *store, md_store_group_t gro apr_status_t md_acme_find_acct_for_md(md_acme_t *acme, md_store_t *store, const md_t *md) { apr_status_t rv; + int max_retries = acme->max_retries; while (APR_EAGAIN == (rv = acct_find_and_verify(store, MD_SG_ACCOUNTS, mk_acct_pattern(acme->p, acme), acme, md, acme->p))) { - /* nop */ + if (max_retries == 0) { + break; + } + + --max_retries; } if (APR_STATUS_IS_ENOENT(rv)) {