From: Christopher Faulet Date: Fri, 3 Jun 2022 14:24:02 +0000 (+0200) Subject: BUG/MINOR: ssl_ckch: Fix possible uninitialized value in show_cert I/O handler X-Git-Tag: v2.7-dev1~103 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d1d2e4dfe54d72aad6d1b58e5126d99d2964481e;p=thirdparty%2Fhaproxy.git 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. --- 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;