Fix speed command for alternation of ciphers and digests.
authorJonathan Protzenko <protz@microsoft.com>
Wed, 17 May 2017 16:09:01 +0000 (09:09 -0700)
committerRich Salz <rsalz@openssl.org>
Fri, 9 Jun 2017 16:55:48 +0000 (12:55 -0400)
CLA: trivial

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3487)

(cherry picked from commit 9ae4e664da0692f27bfe0d1a34db29ed815203c8)

apps/speed.c

index 6cd1021525046c9528f3ec6a5763e52cf1d0492f..5c0996b18fc347b70a150f5ec42ebb51a7c3dab5 100644 (file)
@@ -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);