BUG/MINOR: ssl/cli: free BIO upon error in 'show ssl cert'
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 20 Mar 2020 13:10:17 +0000 (14:10 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 20 Mar 2020 13:22:35 +0000 (14:22 +0100)
commit67b991d370108f44a88143851f904d78f84a3842
tree4aa5478a962dae54264d18ae77062f4d8795256a
parent18b303e9f9b38e3a35b05cfe54d57ce3c81599c0
BUG/MINOR: ssl/cli: free BIO upon error in 'show ssl cert'

Fix a memory leak that could happen upon a "show ssl cert" if notBefore:
or notAfter: failed to extract its ASN1 string.

Introduced by d4f946c ("MINOR: ssl/cli: 'show ssl cert' give information
on the certificates"). 2.2 only.
src/ssl_sock.c