From: William Lallemand Date: Tue, 6 May 2025 18:13:15 +0000 (+0200) Subject: MINOR: ssl: add filename and linenum for ssl-f-use errors X-Git-Tag: v3.2-dev15~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3b282d2ee68de1e4365e8f5560577bc25e95045;p=thirdparty%2Fhaproxy.git MINOR: ssl: add filename and linenum for ssl-f-use errors Fill cfg_crt_node with a filename and linenum so the post_section callback can use it to emit errors. This way the errors are emitted with the right filename and linenum where ssl-f-use is used instead of (null):0 --- diff --git a/src/cfgparse-ssl.c b/src/cfgparse-ssl.c index b78014872..d5b499563 100644 --- a/src/cfgparse-ssl.c +++ b/src/cfgparse-ssl.c @@ -2186,6 +2186,13 @@ static int proxy_parse_ssl_f_use(char **args, int section_type, struct proxy *cu memprintf(err, "not enough memory!"); goto error; } + cfg_crt_node->filename = strdup(file); + if (!cfg_crt_node->filename) { + memprintf(err, "not enough memory!"); + goto error; + } + cfg_crt_node->linenum = linenum; + ckch_conf = calloc(1, sizeof *ckch_conf); if (!ckch_conf) {