]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl_ckch: Free error msg if commit changes on a CA/CRL entry fails
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 31 May 2022 16:03:26 +0000 (18:03 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Jun 2022 14:28:15 +0000 (16:28 +0200)
On the CLI, If we fail to commit changes on a CA or a CRL entry, an error
message is returned. This error must be released.

This patch must be backported as far as 2.4.

src/ssl_ckch.c

index d0e5ce7ef9804f2a1a5e1eb89ac3bd20285b5f88..def02657ae9382a0e3b6bc3e15ec015ead83f913 100644 (file)
@@ -2941,6 +2941,7 @@ error:
                applet_putchk(appctx, trash);
                free_trash_chunk(trash);
        }
+       free(err);
        /* error: call the release function and don't come back */
        return 1;
 }