Fix memory leak in SSL_CTX_use_certificate
PATCH 1/1 Fix memory leak in SSL_CTX_use_certificate
Commit 98bfeeb4 introduced a memory leak in SSL_CTX_use_certificate by removing the "if(x509) { ... }" bit while not changing the "else if(x) {}" right after to an "if(x) {}".
Signed-off-by Steffan Karger <[email protected]...>
--- src/openvpn/ssl_openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/openvpn/ssl_openssl.c +1 -1
@@ -855,7 +855,7 @@ end: {BIO_free (in); } - else if (x) +if (x) {X509_free (x); }
Signature · 1 line
2.17.1
Am 26.09.18 um 21:27 schrieb Steffan Karger:
Quoted 3 lines
Commit
98bfeeb4introduced a memory leak inSSL_CTX_use_certificateby removing the "if(x509) { ... }" bit while not changing the "else if(x) {}" right after to an "if(x) {}".
Hmpf, I should have spotted that.
Acked-by Arne Schwabe <[email protected]...>
Arne
Your patch has been applied to the master branch.
commit 5544f47b0eb31e516aa8afbb68579e35e69cf7e7
Author: Steffan Karger Date: Wed Sep 26 21:27:06 2018 +0200
Fix memory leak in SSL_CTX_use_certificate
Signed-off-by: Steffan Karger <[email protected]...>
Acked-by: Arne Schwabe <[email protected]...>
Message-Id: <[email protected]...>
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering