diff options
-rw-r--r-- | test/fake_rsaprov.c | 3 |
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"); |