BUG/MINOR: ssl: memleak of struct crtlist_entry
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 17 Mar 2020 19:11:41 +0000 (20:11 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 17 Mar 2020 19:28:06 +0000 (20:28 +0100)
commita64593c80ddd4c73af09491140786537de3b4a16
tree2a99eeee7bf9242d201517a6b25f355ed9808cc5
parentc62d9ab7cb65fc9d0c7383dbb46e123da096385d
BUG/MINOR: ssl: memleak of struct crtlist_entry

There is a memleak of the entry structure in crtlist_load_cert_dir(), in
the case we can't stat the file, or this is not a regular file. Let's
move the entry allocation so it's done after these tests.

Fix issue #551.
src/ssl_sock.c