]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl_ckch: Init right field when parsing "commit ssl crl-file" cmd
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Jun 2022 09:32:05 +0000 (11:32 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Jun 2022 10:12:04 +0000 (12:12 +0200)
.next_ckchi_link field must be initialized to NULL instead of .next_ckchi in
cli_parse_commit_crlfile() function. Only '.nex_ckchi_link' is used in the
I/O handler.

This patch must be backported as far as 2.5 with some adaptations for the 2.5.

src/ssl_ckch.c

index 5a75f7997f2263988340149441b17bb264e369de..e6e94e02e90a239919cebdaf106b45227740f447 100644 (file)
@@ -3393,7 +3393,7 @@ static int cli_parse_commit_crlfile(char **args, char *payload, struct appctx *a
        }
        /* init the appctx structure */
        ctx->state = CACRL_ST_INIT;
-       ctx->next_ckchi = NULL;
+       ctx->next_ckchi_link = NULL;
        ctx->old_crlfile_entry = crlfile_transaction.old_crlfile_entry;
        ctx->new_crlfile_entry = crlfile_transaction.new_crlfile_entry;
        ctx->cafile_type = CAFILE_CRL;