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.
This commit is contained in:
Christopher Faulet 2022-06-03 11:32:05 +02:00
parent 3e94f5d4b6
commit f814c4aa98

View 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;