summaryrefslogtreecommitdiff
path: root/test/evp_pkey_provided_test.c
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2020-07-06 14:16:09 +1000
committerDmitry Belyavskiy <beldmit@gmail.com>2020-07-08 11:19:08 +0300
commitfd7d574dd98761d41d87a777c0b4f044ecc075be (patch)
tree4053f10d4c2877a31bc3df61222a3a9fa9709d33 /test/evp_pkey_provided_test.c
parent84ba665d72906c36b158071035896f50a9aad808 (diff)
downloadopenssl-new-fd7d574dd98761d41d87a777c0b4f044ecc075be.tar.gz
Fix CID 1465215 : Explicit null dereferenced (in test)
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/12379)
Diffstat (limited to 'test/evp_pkey_provided_test.c')
-rw-r--r--test/evp_pkey_provided_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/evp_pkey_provided_test.c b/test/evp_pkey_provided_test.c
index fd3e580d8c..7e063bb77b 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);