diff --git a/test/v3nametest.c b/test/v3nametest.c index a1998550e2..6d2e2f8e27 100644 --- a/test/v3nametest.c +++ b/test/v3nametest.c @@ -288,6 +288,8 @@ static int run_cert(X509 *crt, const char *nameincert, char *name = OPENSSL_malloc(namelen + 1); int match, ret; + if (!TEST_ptr(name)) + return 0; memcpy(name, *pname, namelen + 1); match = -1;