From b3b282d2ee68de1e4365e8f5560577bc25e95045 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Tue, 6 May 2025 20:13:15 +0200 Subject: [PATCH] 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 --- src/cfgparse-ssl.c | 7 +++++++ 1 file changed, 7 insertions(+) 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) {