]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: acme: fix ha_alert() call
authorMaxime Henrion <mhenrion@haproxy.com>
Tue, 25 Nov 2025 17:37:02 +0000 (12:37 -0500)
committerWilliam Lallemand <wlallemand@irq6.net>
Tue, 25 Nov 2025 19:20:25 +0000 (20:20 +0100)
A NULL pointer was passed as the format string, so this alert message
was never written.

Must be backported to 3.2.

src/acme.c

index 17c8b1a5e5ac5417859059575d4e8ef5589a26f7..b8ad8df671782beb2bd25c04c5e3bba950fdc645 100644 (file)
@@ -662,7 +662,7 @@ static int cfg_postsection_acme()
 
                rv = snprintf(store_path, sizeof(store_path), "%s/%s", global_ssl.crt_base, cur_acme->account.file);
                if (rv >= sizeof(store_path)) {
-                       ha_alert(errmsg, "'%s/%s' : path too long", global_ssl.crt_base, cur_acme->account.file);
+                       ha_alert("'%s/%s' : path too long", global_ssl.crt_base, cur_acme->account.file);
                        err_code |= ERR_ALERT | ERR_FATAL;
                        goto out;
                }