From 73ab78e91703efa9bd7294838f76454055a470c2 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Fri, 11 Apr 2025 23:44:13 +0200 Subject: [PATCH] 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. --- src/acme.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/acme.c b/src/acme.c index be8e58d5b..5e1ea927c 100644 --- a/src/acme.c +++ b/src/acme.c @@ -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 -- 2.47.2