BUG/MINOR: ssl: memory leak when find_chain is NULL
authorEmmanuel Hocdet <manu@gandi.net>
Mon, 23 Mar 2020 09:31:47 +0000 (10:31 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 23 Mar 2020 12:10:10 +0000 (13:10 +0100)
commitf4f14eacd37e9de47bf9ecfbbd04a68baf6617ee
tree3e001e0607757b7a9e613ae39b01dacf12f25d6e
parent3328f1859645ac97ce6725aa7311e6bf73aacf9c
BUG/MINOR: ssl: memory leak when find_chain is NULL

This bug was introduced by 85888573 "BUG/MEDIUM: ssl: chain must be
initialized with sk_X509_new_null()". No need to set find_chain with
sk_X509_new_null(), use find_chain conditionally to fix issue #516.

This bug was referenced by issue #559.

[wla: fix some alignment/indentation issue]
src/ssl_sock.c