]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl_ckch: Fix possible uninitialized value in show_crlfile I/O handler
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Jun 2022 14:26:56 +0000 (16:26 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Jun 2022 14:28:11 +0000 (16:28 +0200)
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.

src/ssl_ckch.c

index ee30a8d1190dcca6d7b57355d3e6fd463a55439b..ab8ceaadd5deb3218ce6329ce446eafcdf5200e2 100644 (file)
@@ -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;