]> git.ipfire.org Git - thirdparty/hostap.git/commit
OpenSSL: Fix a memory leak in OCSP handling
authorJouni Malinen <jouni@codeaurora.org>
Wed, 8 May 2019 18:08:53 +0000 (21:08 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 8 May 2019 18:08:53 +0000 (21:08 +0300)
commite3b39e62c2ded588943190c941084e4a08701bdf
tree6e5538fe5cabd76f08dd7476bcf6caa524442306
parent6602d9e3a6fa113cfbc6dd384ab11519c071b9f8
OpenSSL: Fix a memory leak in OCSP handling

If OCSP_resp_find_status() fails with the first OCSP_CERTID, the
generation of the second OCSP_CERTID ended up leaking memory. Fix this
by freeing the previously allocated OCSP_CERTID on that code path.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/crypto/tls_openssl.c