]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Check if pkcs11_cert is NULL before freeing it
authorMax Fillinger <maximilian.fillinger@foxcrypto.com>
Wed, 23 Nov 2022 15:49:12 +0000 (16:49 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 23 Nov 2022 21:07:37 +0000 (22:07 +0100)
commit19c64f16baebbce966d55c62135d1ef066f7c8c2
treeaaa0ea86222f12f3230c0ef6ca64aead5329ce9c
parent543f709f13bca9887cabd4545554539f18346e3c
Check if pkcs11_cert is NULL before freeing it

When running openvpn --show-tls with mbedtls, it showed a null pointer
error at the end because of this.

Signed-off-by: Max Fillinger <maximilian.fillinger@foxcrypto.com>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <20221123154912.28394-1-maximilian.fillinger@foxcrypto.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25530.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/ssl_mbedtls.c