From 677cb4fa91090a940ac9ba99049fb8584e7ae83d Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Fri, 3 Jun 2022 16:25:35 +0200 Subject: [PATCH] BUG/MINOR: ssl_ckch: Fix possible uninitialized value in show_cafile I/O handler Commit 5a2154bf7 ("BUG/MINOR: ssl_ckch: Dump CA 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.5. --- 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 5dbd3a56f..ee30a8d11 100644 --- a/src/ssl_ckch.c +++ b/src/ssl_ckch.c @@ -3075,7 +3075,7 @@ static int cli_io_handler_show_cafile(struct appctx *appctx) struct show_cafile_ctx *ctx = appctx->svcctx; struct buffer *trash = alloc_trash_chunk(); struct ebmb_node *node; - struct cafile_entry *cafile_entry; + struct cafile_entry *cafile_entry = NULL; if (trash == NULL) return 1;