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

src/ssl_ckch.c

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