From: Jonathan Protzenko Date: Wed, 17 May 2017 16:09:01 +0000 (-0700) Subject: Fix speed command for alternation of ciphers and digests. X-Git-Tag: OpenSSL_1_0_2m~78 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8270415d4ab6e3978cdd604d416c4f1f86289c4a;p=oweals%2Fopenssl.git Fix speed command for alternation of ciphers and digests. CLA: trivial Reviewed-by: Tim Hudson Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/3487) (cherry picked from commit 9ae4e664da0692f27bfe0d1a34db29ed815203c8) --- diff --git a/apps/speed.c b/apps/speed.c index 6cd1021525..5c0996b18f 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -725,6 +725,7 @@ int MAIN(int argc, char **argv) BIO_printf(bio_err, "no EVP given\n"); goto end; } + evp_md = NULL; evp_cipher = EVP_get_cipherbyname(*argv); if (!evp_cipher) { evp_md = EVP_get_digestbyname(*argv);