]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl: fix memory leak at OCSP loading
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 6 Aug 2020 22:44:32 +0000 (00:44 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 6 Aug 2020 23:14:31 +0000 (01:14 +0200)
commit86e4d63316de32b964c8b6b453b549532611e7e5
tree6cea231e51af8b8512a52e1261231ea4e60c0899
parent4896d279aa159ba1fc9f7728a30120993c7ac577
BUG/MINOR: ssl: fix memory leak at OCSP loading

Fix a memory leak when loading an OCSP file when the file was already
loaded elsewhere in the configuration.

Indeed, if the OCSP file already exists, a useless chunk_dup() will be
done during the load.

To fix it we reverts "ocsp" to "iocsp" like it was done previously.

This was introduced by commit 246c024 ("MINOR: ssl: load the ocsp
in/from the ckch").

Should fix part of the issue #746.

It must be backported in 2.1 and 2.2.
src/ssl_sock.c