mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-11 01:41:49 -04:00
BUG/MINOR: acme: don't pass NULL into format string
Printing a "(null)" when NULL passed with the %s format specifier is a GNU extension, so it must be avoided for portability reasons. Must be backported as far as 3.2
This commit is contained in:
parent
53679fe5f6
commit
79c54d28b0
1 changed files with 1 additions and 1 deletions
|
|
@ -810,7 +810,7 @@ static int cfg_postsection_acme()
|
|||
/* tries to open the account key */
|
||||
if (stat(path, &st) == 0) {
|
||||
if (ssl_sock_load_key_into_ckch(path, NULL, store->data, &errmsg)) {
|
||||
memprintf(&errmsg, "%s'%s' is present but cannot be read or parsed.\n", errmsg, path);
|
||||
memprintf(&errmsg, "%s'%s' is present but cannot be read or parsed.\n", errmsg ? errmsg : "", path);
|
||||
if (errmsg)
|
||||
indent_msg(&errmsg, 8);
|
||||
err_code |= ERR_ALERT | ERR_FATAL | ERR_ABORT;
|
||||
|
|
|
|||
Loading…
Reference in a new issue