mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
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:
parent
8a96216847
commit
0c4abf5a22
@ -2200,12 +2200,6 @@ static int proxy_parse_ssl_f_use(char **args, int section_type, struct proxy *cu
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
ckch_conf->crt = strdup(args[1]);
|
|
||||||
if (!ckch_conf->crt) {
|
|
||||||
memprintf(err, "not enough memory!");
|
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
|
|
||||||
while (*args[cur_arg]) {
|
while (*args[cur_arg]) {
|
||||||
int foundcrtstore = 0; /* found a crt-store keyword */
|
int foundcrtstore = 0; /* found a crt-store keyword */
|
||||||
int found = 0; /* found a crt-list or crt-store keyword */
|
int found = 0; /* found a crt-list or crt-store keyword */
|
||||||
|
Loading…
Reference in New Issue
Block a user