BUG/MEDIUM: acme: cfg_postsection_acme() don't init correctly acme sections

The cfg_postsection_acme() redefines its own cur_acme variable, pointing
to the first acme section created. Meaning that the first section would
be init multiple times, and the next sections won't never be
initialized.

It could result in crashes at the first use of all sections that are not
the first one.

Must be backported in 3.2
This commit is contained in:
William Lallemand 2025-09-27 19:58:44 +02:00
parent 406fd0ceb1
commit a9ccf692e7

View File

@ -616,7 +616,6 @@ error:
/* Initialize stuff once the section is parsed */
static int cfg_postsection_acme()
{
struct acme_cfg *cur_acme = acme_cfgs;
struct ckch_store *store;
EVP_PKEY *key = NULL;
BIO *bio = NULL;