"man BIO_new()" agrees that a BIO_free() is in order...

So it's a memleak, and bugfixes go to 2.7 :-) - test compiled the 2.7
branch, and actually tested on a macOS build with a nitrokey.

Your patch has been applied to the master and release/2.7 branch.

commit 3d29d28b0578daad8f2adf5dfb5d8d138e31bc3a (master)
commit eec6b7513e0481ebe25d1b1a44cf1e2f54f452e8 (release/2.7)
Author: Razvan Cojocaru
Date:   Fri Nov 27 19:12:12 2026 +0100

     pkcs11_openssl: free the BIO in pkcs11_certificate_serial()

     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]>


--
kind regards,

Gert Doering



_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to