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
This commit is contained in:
parent
99f5be5631
commit
b3b282d2ee
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user