summaryrefslogtreecommitdiffstats
path: root/test/fake_rsaprov.c
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2022-06-29 11:23:27 +1000
committerPauli <pauli@openssl.org>2022-07-01 13:32:05 +1000
commitf80cdee7c1eee93d13c7dcbeda32dfca3e1e4059 (patch)
treee61ac69048a497940879d636f1ee2005674f94c8 /test/fake_rsaprov.c
parent5c535e4692a5a4f2ec7691de4efc6290193a0882 (diff)
fix Coverity 1506709: error handling
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18679)
Diffstat (limited to 'test/fake_rsaprov.c')
-rw-r--r--test/fake_rsaprov.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/fake_rsaprov.c b/test/fake_rsaprov.c
index 8f82f5987c..d556551bb6 100644
--- a/test/fake_rsaprov.c
+++ b/test/fake_rsaprov.c
@@ -260,7 +260,8 @@ static void *fake_rsa_st_open(void *provctx, const char *uri)
return NULL;
storectx = OPENSSL_zalloc(1);
- TEST_ptr(storectx);
+ if (!TEST_ptr(storectx))
+ return NULL;
TEST_info("fake_rsa_open called");