BUG/MINOR: ssl_ckch: Fix possible uninitialized value in show_cert I/O handler

Commit 3e94f5d4b ("BUG/MINOR: ssl_ckch: Dump cert transaction only once if
show command yield") introduced a regression leading to a build error
because of a possible uninitialized value. It is now fixed.

This patch must be backported as far as 2.2.
This commit is contained in:
Christopher Faulet 2022-06-03 16:24:02 +02:00
parent d6c66f06ac
commit d1d2e4dfe5

View File

@ -1301,7 +1301,7 @@ static int cli_io_handler_show_cert(struct appctx *appctx)
struct show_cert_ctx *ctx = appctx->svcctx;
struct buffer *trash = alloc_trash_chunk();
struct ebmb_node *node;
struct ckch_store *ckchs;
struct ckch_store *ckchs = NULL;
if (trash == NULL)
return 1;