From: Christopher Faulet Date: Fri, 3 Jun 2022 09:32:05 +0000 (+0200) Subject: BUG/MINOR: ssl_ckch: Init right field when parsing "commit ssl crl-file" cmd X-Git-Tag: v2.7-dev1~109 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f814c4aa987700de45136fe0cf1f3a41d3f5da8c;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c index 5a75f7997f..e6e94e02e9 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;