Re: [Openvpn-devel] [PATCH] Check if pkcs11_cert is NULL before freeing it

2022-11-23 Thread Gert Doering
Hi, On Wed, Nov 23, 2022 at 01:37:47PM -0500, Selva Nair wrote: > pkcs11h_certiciate_freeCertificate() does seem to handle NULL argument. > With --show-tls, are we calling this before intializing the pkcs11 library? > That could trigger an ASSERT. If I build on Linux with mbedtls && --enable-pkcs

Re: [Openvpn-devel] [PATCH] Check if pkcs11_cert is NULL before freeing it

2022-11-23 Thread Selva Nair
Hi, On Wed, Nov 23, 2022 at 12:18 PM Arne Schwabe wrote: > Am 23.11.22 um 16:49 schrieb Max Fillinger: > > When running openvpn --show-tls with mbedtls, it showed a null pointer > > error at the end because of this. > > > > Signed-off-by: Max Fillinger > > --- > > src/openvpn/ssl_mbedtls.c |

Re: [Openvpn-devel] [PATCH] Check if pkcs11_cert is NULL before freeing it

2022-11-23 Thread Arne Schwabe
Am 23.11.22 um 16:49 schrieb Max Fillinger: When running openvpn --show-tls with mbedtls, it showed a null pointer error at the end because of this. Signed-off-by: Max Fillinger --- src/openvpn/ssl_mbedtls.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/openvpn/