Gert Doering has submitted this change. ( 
https://gerrit.openvpn.net/c/openvpn/+/2364?usp=email )

Change subject: pkcs11_openssl: free the BIO in pkcs11_certificate_serial()
......................................................................

pkcs11_openssl: free the BIO in pkcs11_certificate_serial()

The memory BIO holding the serial number was never freed, leaking it
for every certificate listed by --show-pkcs11-ids.

Change-Id: I7aa7e2f15d63e8e5dc2449c46db075e179627ced
Signed-off-by: Razvan Cojocaru <[email protected]>
Acked-by: Frank Lichtenheld <[email protected]>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2364
Message-Id: <[email protected]>
URL: 
https://www.mail-archive.com/[email protected]/msg42094.html
Signed-off-by: Gert Doering <[email protected]>
---
M src/openvpn/pkcs11_openssl.c
1 file changed, 1 insertion(+), 0 deletions(-)




diff --git a/src/openvpn/pkcs11_openssl.c b/src/openvpn/pkcs11_openssl.c
index c5974fce..ebf13f5 100644
--- a/src/openvpn/pkcs11_openssl.c
+++ b/src/openvpn/pkcs11_openssl.c
@@ -442,6 +442,7 @@
     ret = 0;

 cleanup:
+    BIO_free(bio);
     X509_free(x509);
     x509 = NULL;


--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2364?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7aa7e2f15d63e8e5dc2449c46db075e179627ced
Gerrit-Change-Number: 2364
Gerrit-PatchSet: 2
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-Reviewer: Frank Lichtenheld <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to