BUG/MINOR: ssl: doesn't fill conf->crt with first arg

Commit c7f29afc ("MEDIUM: ssl: replace "crt" lines by "ssl-f-use"
lines") forgot to remove an the allocation of the crt field which was
done with the first argument.

Since ssl-f-use takes keywords, this would put the first keyword in
"crt" instead of the certificate name.
This commit is contained in:
William Lallemand 2025-05-09 18:23:06 +02:00
parent 8a96216847
commit 0c4abf5a22

View File

@ -2200,12 +2200,6 @@ static int proxy_parse_ssl_f_use(char **args, int section_type, struct proxy *cu
goto error;
}
ckch_conf->crt = strdup(args[1]);
if (!ckch_conf->crt) {
memprintf(err, "not enough memory!");
goto error;
}
while (*args[cur_arg]) {
int foundcrtstore = 0; /* found a crt-store keyword */
int found = 0; /* found a crt-list or crt-store keyword */