提交 31b69e9a 编写于 作者: R Richard Levitte

test/evp_test.c: If no algorithm was specified, don't try to check for DES

Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2319)
上级 d2828c8b
......@@ -1252,7 +1252,7 @@ static int mac_test_run(struct evp_test *t)
size_t mac_len;
#ifdef OPENSSL_NO_DES
if (strstr(mdata->alg, "DES") != NULL) {
if (mdata->alg != NULL && strstr(mdata->alg, "DES") != NULL) {
/* Skip DES */
err = NULL;
goto err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册