]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl: doesn't fill conf->crt with first arg
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 9 May 2025 16:23:06 +0000 (18:23 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 9 May 2025 16:23:06 +0000 (18:23 +0200)
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.

src/cfgparse-ssl.c

index 1a786f98d47e5218581f1ea69042a125bb488302..c71e070d660073caf9fc771eb1e4dba00eed3930 100644 (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 */