]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: acme: cfg_postsection_acme() don't init correctly acme sections
authorWilliam Lallemand <wlallemand@irq6.net>
Sat, 27 Sep 2025 17:58:44 +0000 (19:58 +0200)
committerWilliam Lallemand <wlallemand@irq6.net>
Sat, 27 Sep 2025 17:58:44 +0000 (19:58 +0200)
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

src/acme.c

index ba4bf5905a076138a233a066dcbc6da4250c79dc..91da06a1bf6b8d19cc47fa9b3594d44952b30057 100644 (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;