From: Shane Lontis Date: Mon, 6 Jul 2020 04:16:09 +0000 (+1000) Subject: Fix CID 1465215 : Explicit null dereferenced (in test) X-Git-Tag: openssl-3.0.0-alpha5~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd7d574dd98761d41d87a777c0b4f044ecc075be;p=thirdparty%2Fopenssl.git Fix CID 1465215 : Explicit null dereferenced (in test) Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/12379) --- diff --git a/test/evp_pkey_provided_test.c b/test/evp_pkey_provided_test.c index fd3e580d8c2..7e063bb77bc 100644 --- a/test/evp_pkey_provided_test.c +++ b/test/evp_pkey_provided_test.c @@ -841,6 +841,8 @@ static int test_fromdata_ecx(int tst) size = ED448_KEYLEN; alg = "ED448"; break; + default: + goto err; } ctx = EVP_PKEY_CTX_new_from_name(NULL, alg, NULL);