]> git.ipfire.org Git - thirdparty/openssl.git/commit
test/sslapitest.c: Add check for SSL_CTX_new
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Mon, 21 Feb 2022 02:54:29 +0000 (10:54 +0800)
committerPauli <pauli@openssl.org>
Tue, 22 Feb 2022 23:21:27 +0000 (10:21 +1100)
commitb0317df2311769e02d9ceb4e7afe19521f8ffbf1
treea9c0f89a61405351226d492ddb1451751a34fbba
parenta044af49c43ec8fe099deeb5d06501ddf70abf7a
test/sslapitest.c: Add check for SSL_CTX_new

As the potential failure of the memory allocation, it should
be better to check the return value of SSL_CTX_new() and return
error if fails, like SSL_CTX_new_ex().

Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17739)
test/sslapitest.c