Fix speed command for alternation of ciphers and digests.
[openssl.git] / apps / speed.c
index f64bea9..ee55bfd 100644 (file)
@@ -1357,6 +1357,7 @@ int speed_main(int argc, char **argv)
             usertime = 0;
             break;
         case OPT_EVP:
+            evp_md = NULL;
             evp_cipher = EVP_get_cipherbyname(opt_arg());
             if (evp_cipher == NULL)
                 evp_md = EVP_get_digestbyname(opt_arg());