From d1d2e4dfe54d72aad6d1b58e5126d99d2964481e Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Fri, 3 Jun 2022 16:24:02 +0200 Subject: [PATCH] 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. --- 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 80853c6461..5dbd3a56f0 100644 --- a/src/ssl_ckch.c +++ b/src/ssl_ckch.c @@ -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; -- 2.47.3