BUG/MINOR: ssl: memory leak in crtlist_parse_file()
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 17 Mar 2020 15:53:27 +0000 (16:53 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 17 Mar 2020 15:57:34 +0000 (16:57 +0100)
commit909086ea61c985bce9ac4d015e47eeb45586a6de
tree35d8d92fb3187a1d3564d5bcb3611103ef8a1792
parenta7bf57352059277239794950f9aac33d05741f1a
BUG/MINOR: ssl: memory leak in crtlist_parse_file()

A memory leak happens in an error case when ckchs_load_cert_file()
returns NULL in crtlist_parse_file().

This bug was introduced by commit 2954c47 ("MEDIUM: ssl: allow crt-list caching")

This patch fixes bug #551.
src/ssl_sock.c