mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-12-02 08:11:29 +01:00
BUG/MINOR: acme: fix ha_alert() call
A NULL pointer was passed as the format string, so this alert message was never written. Must be backported to 3.2.
This commit is contained in:
parent
de29000e60
commit
d506c03aa0
@ -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);
|
rv = snprintf(store_path, sizeof(store_path), "%s/%s", global_ssl.crt_base, cur_acme->account.file);
|
||||||
if (rv >= sizeof(store_path)) {
|
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;
|
err_code |= ERR_ALERT | ERR_FATAL;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user