From: William Lallemand Date: Fri, 11 Apr 2025 21:44:13 +0000 (+0200) Subject: BUG/MINOR: acme: ckch_conf_acme_init() when no filename X-Git-Tag: v3.2-dev11~84 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73ab78e91703efa9bd7294838f76454055a470c2;p=thirdparty%2Fhaproxy.git 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. --- 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