From: Christopher Faulet Date: Fri, 3 Jun 2022 14:26:56 +0000 (+0200) Subject: BUG/MINOR: ssl_ckch: Fix possible uninitialized value in show_crlfile I/O handler X-Git-Tag: v2.7-dev1~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88041b35c3c964d1333877461f532da61dc81204;p=thirdparty%2Fhaproxy.git BUG/MINOR: ssl_ckch: Fix possible uninitialized value in show_crlfile I/O handler Commit 9a99e5478 ("BUG/MINOR: ssl_ckch: Dump CRL 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. --- diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c index ee30a8d119..ab8ceaadd5 100644 --- a/src/ssl_ckch.c +++ b/src/ssl_ckch.c @@ -3715,7 +3715,7 @@ static int cli_io_handler_show_crlfile(struct appctx *appctx) struct show_crlfile_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;