Attention is currently required from: Arne Schwabe.

Hello Arne Schwabe,

I'd like you to do a code review.
Please visit

    https://gerrit.openvpn.net/c/openvpn/+/2364?usp=email

to review the following change.


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]>
---
M src/openvpn/pkcs11_openssl.c
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/64/2364/1

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: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7aa7e2f15d63e8e5dc2449c46db075e179627ced
Gerrit-Change-Number: 2364
Gerrit-PatchSet: 1
Gerrit-Owner: Răzvan Cojocaru <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to