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

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