mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-06-11 09:50:26 -04:00
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 <steffan@karger.me>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20180926192706.29460-1-steffan@karger.me>
Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
03c8bfc90f
commit
5544f47b0e
1 changed files with 1 additions and 1 deletions
|
|
@ -855,7 +855,7 @@ end:
|
|||
{
|
||||
BIO_free(in);
|
||||
}
|
||||
else if (x)
|
||||
if (x)
|
||||
{
|
||||
X509_free(x);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue