summaryrefslogtreecommitdiffstats
path: root/test/evp_test.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2017-01-29 00:08:01 +0100
committerRichard Levitte <levitte@openssl.org>2017-01-29 01:19:14 +0100
commit31b69e9a26c5b127ce273bc5834b9e13e5e25556 (patch)
tree1631a70e2314a96de66eb7647c2d963f8e1d3bf9 /test/evp_test.c
parentd2828c8bdba2ec71a352cfc8a170ea2f5a9d0525 (diff)
test/evp_test.c: If no algorithm was specified, don't try to check for DES
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2319)
Diffstat (limited to 'test/evp_test.c')
-rw-r--r--test/evp_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/evp_test.c b/test/evp_test.c
index e1a5f14328..b924f833a0 100644
--- a/test/evp_test.c
+++ b/test/evp_test.c
@@ -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;