]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl_ckch: Free error msg if commit changes on a cert entry fails
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 31 May 2022 16:02:30 +0000 (18:02 +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 certificate entry, an error
message is returned. This error must be released.

This patch must be backported as far as 2.2.

src/ssl_ckch.c

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