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)
This commit is contained in:
Pauli 2022-06-29 11:23:27 +10:00
parent 5c535e4692
commit f80cdee7c1

View File

@ -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");