BUG/MINOR: ssl: Fix leaks in 'update ssl ocsp-response' CLI command
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Mon, 23 Jan 2023 14:57:13 +0000 (15:57 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 25 Jan 2023 10:51:39 +0000 (11:51 +0100)
commit305a4f32a5e8f3a898447e194a6830bd1090fa20
treeeb019cff97bef1145a4e7fe05fa4cd910c8c62ad
parente06ba9031843b6a55df486f5115b6675d71e22f7
BUG/MINOR: ssl: Fix leaks in 'update ssl ocsp-response' CLI command

This patch fixes two leaks in the 'update ssl ocsp-response' cli
command. One rather significant one since a whole trash buffer was
allocated for every call of the command, and another more marginal one
in an error path.

This patch does not need to be backported.
src/ssl_ocsp.c