Fix CID 1465215 : Explicit null dereferenced (in test)

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/12379)
This commit is contained in:
Shane Lontis 2020-07-06 14:16:09 +10:00 committed by Dmitry Belyavskiy
parent 84ba665d72
commit fd7d574dd9

View File

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