diff options
author | Richard Levitte <levitte@openssl.org> | 2017-01-29 00:08:01 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-01-29 01:41:26 +0100 |
commit | 1968ea9850f7e50609284756ca78e465e5ee4fb9 (patch) | |
tree | aa6fc353ecf39d0466abfe4c85ee22566b4dac17 /test | |
parent | b649ffcaea38864270ad6c2362ed0ef639749707 (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)
(cherry picked from commit 31b69e9a26c5b127ce273bc5834b9e13e5e25556)
Diffstat (limited to 'test')
-rw-r--r-- | test/evp_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/evp_test.c b/test/evp_test.c index 02ae0a5b80..f6cec05c10 100644 --- a/test/evp_test.c +++ b/test/evp_test.c @@ -1245,7 +1245,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; |