]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl_ckch: Use right type for old entry in show_crlfile_ctx
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Jun 2022 08:21:27 +0000 (10:21 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 3 Jun 2022 09:20:16 +0000 (11:20 +0200)
Because of a typo (I guess), an unknown type is used for the old entry in
show_crlfile_ctx structure. Because this field is unused, there is no
compilation error. But it must be a cafile_entry and not a crlfile_entry.

Note this field is not used for now, but it will be used.

This patch must be backported to 2.6.

src/ssl_ckch.c

index 1cfc9941fa9d22ce6cbc2c95873d04b16d04d382..601cec9354588ce64ac109e7a824186ba644b4b6 100644 (file)
@@ -73,7 +73,7 @@ struct show_cafile_ctx {
 /* CLI context used by "show crlfile" */
 struct show_crlfile_ctx {
        struct cafile_entry *cafile_entry;
-       struct crlfile_entry *old_crlfile_entry;
+       struct cafile_entry *old_crlfile_entry;
        int index;
 };