From: "cron2 (Code Review)" Date: Tue, 28 Oct 2025 09:23:52 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., selva.nair@...277..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <10943344e419d02f5d5ed86bb5d570e25c652f9e-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="xwbsC9jPSS4="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: pkcs11_management_id_get: Free certificate object after use List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: selvanair , plaisthos , flichtenheld Cc: openvpn-devel --xwbsC9jPSS4= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= selvanair. ( http://gerrit.openvpn.net/c/openvpn/+/1317?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by plaisthos Change subject: pkcs11_management_id_get: Free certificate object after use ...................................................................... pkcs11_management_id_get: Free certificate object after use Found by ZeroPath Change-Id: I85320b8f1cfc02dfd561916e5637d9481edac59e Signed-off-by: Selva Nair Acked-by: Arne Schwabe Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1317 Message-Id: <20251027212747.4161-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg33= 908.html Signed-off-by: Gert Doering --- M src/openvpn/pkcs11.c 1 file changed, 3 insertions(+), 3 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/17/1317/2 diff --git a/src/openvpn/pkcs11.c b/src/openvpn/pkcs11.c index ce64135..9afb181 100644 --- a/src/openvpn/pkcs11.c +++ b/src/openvpn/pkcs11.c @@ -436,9 +436,6 @@ { pkcs11h_certificate_id_list_t id_list =3D NULL; pkcs11h_certificate_id_list_t entry =3D NULL; -#if 0 /* certificate_id seems to be unused -- JY */ - pkcs11h_certificate_id_t certificate_id =3D NULL; -#endif pkcs11h_certificate_t certificate =3D NULL; CK_RV rv =3D CKR_OK; unsigned char *certificate_blob =3D NULL; @@ -548,6 +545,9 @@ pkcs11h_certificate_freeCertificateIdList(id_list); id_list =3D NULL; + pkcs11h_certificate_freeCertificate(certificate); + certificate =3D NULL; + free(internal_id); internal_id =3D NULL; =20 -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1317?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I85320b8f1cfc02dfd561916e5637d9481edac59e Gerrit-Change-Number: 1317 Gerrit-PatchSet: 2 Gerrit-Owner: selvanair Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --xwbsC9jPSS4= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #2 to the change originally created by selvanair.<= /p>

Vi= ew Change

The following approvals got outdated and were removed: Code-Review+2 by plaisthos

pkcs11_management_id_get: Free =
certificate object after use

Found by ZeroPath

Change-Id: I85= 320b8f1cfc02dfd561916e5637d9481edac59e
Signed-off-by: Selva Nair <sel= va.nair@...277...>
Acked-by: Arne Schwabe <arne-openvpn@...1227...= >
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1317
Message-= Id: <20251027212747.4161-1-gert@...1296...>
URL: https://www.mail-= archive.com/openvpn-devel@lists.sourceforge.net/msg33908.html
Signed-off= -by: Gert Doering <gert@...1296...>
---
M src/openvpn/pkcs11.c<= br>1 file changed, 3 insertions(+), 3 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/17/1317/2<=
/pre>
-#if 0 /* =
certificate_id seems to be unused -- JY */
- pkcs11h_certificate_id_t certificate_id =3D NULL;<= /span>
-#endif
pkcs11h_certificate_t certificate =3D NULL;

CK_R= V rv =3D CKR_OK;
unsigned char *certificate_blob =3D N= ULL;
@@ -548,6 +545,9 @@
pkcs11h_certi= ficate_freeCertificateIdList(id_list);
id_list =3D NUL= L;

= + pkcs11h_certificate_freeCertificate(certificate);
+ certificate =3D NULL;
+
free(interna= l_id);
internal_id =3D NULL;
<= br>

To view, visit change 1317. To unsubscribe, or for= help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I85320b8f1cfc02dfd561916e563= 7d9481edac59e
Gerrit-Change-Number: 1317
Gerrit-PatchSet: 2
Gerrit-Owner: selvanair <selva.nair@...1354...= ..>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --xwbsC9jPSS4=--