diff options
author | Jiasheng Jiang <jiasheng@iscas.ac.cn> | 2022-02-18 09:15:50 +0800 |
---|---|---|
committer | Dr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com> | 2022-02-20 12:56:41 +0100 |
commit | 78c5f1266fdd859df04b0ce89e4dd849d9b590d7 (patch) | |
tree | 4950920b244d9d870ca65e07ec47ca367f6eb965 /fuzz/asn1.c | |
parent | 4a4f446008938775c2bea3001c4c8e7a674992ad (diff) | |
download | openssl-new-78c5f1266fdd859df04b0ce89e4dd849d9b590d7.tar.gz |
test/mdc2test.c: Add check for OSSL_PROVIDER_load
Since the potential failure of the OSSL_PROVIDER_load(),
for example there is no lock, the provider could fail to
be loaded into the library context.
Therefore, it should be better to check it and return error
if fails.
Also, in order to avoid free unknown pointer, 'c' should be
initialized as NULL.
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/17729)
Diffstat (limited to 'fuzz/asn1.c')
0 files changed, 0 insertions, 0 deletions