]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl_ckch: Fix another possible uninitialized value
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Jun 2022 14:34:30 +0000 (16:34 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Jun 2022 14:49:53 +0000 (16:49 +0200)
Commit d6c66f06a ("MINOR: ssl_ckch: Remove service context for "set ssl
crl-file" command") 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 e882c1a750d0df8dbd505476a1f6b24df31046ac..9d7775ae01421c0757b0ea816efb7101ab53f2a8 100644 (file)
@@ -3221,8 +3221,8 @@ error:
 /* Parsing function of `set ssl crl-file` */
 static int cli_parse_set_crlfile(char **args, char *payload, struct appctx *appctx, void *private)
 {
-       struct cafile_entry *old_crlfile_entry;
-       struct cafile_entry *new_crlfile_entry;
+       struct cafile_entry *old_crlfile_entry = NULL;
+       struct cafile_entry *new_crlfile_entry = NULL;
        char *err = NULL;
        int errcode = 0;
        struct buffer *buf;