From f814c4aa987700de45136fe0cf1f3a41d3f5da8c Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Fri, 3 Jun 2022 11:32:05 +0200 Subject: [PATCH] BUG/MINOR: ssl_ckch: Init right field when parsing "commit ssl crl-file" cmd .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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c index 5a75f7997..e6e94e02e 100644 --- a/src/ssl_ckch.c +++ b/src/ssl_ckch.c @@ -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;