BUG/MINOR: acme: ckch_conf_acme_init() when no filename

Does not try to strdup the configuration filename if there is none.

No backport needed.
This commit is contained in:
William Lallemand 2025-04-11 23:44:13 +02:00
parent 5500bda9eb
commit 73ab78e917

View File

@ -99,7 +99,8 @@ int ckch_conf_acme_init(void *value, char *buf, struct ckch_data *d, int cli, co
}
if (cfg->linenum == 0) {
cfg->filename = strdup(filename);
if (filename)
cfg->filename = strdup(filename);
/* store the linenum as a negative value because is the one of
* the crt-store, not the one of the section. It will be replace
* by the one of the section once initialized