Fix copy&paste error found in Coverity scan
authorTomas Mraz <tmraz@fedoraproject.org>
Tue, 9 Oct 2018 16:37:10 +0000 (18:37 +0200)
committerNicola Tuveri <nic.tuv@gmail.com>
Sat, 13 Oct 2018 03:40:21 +0000 (06:40 +0300)
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7377)

apps/speed.c

index 27b4d50a64b17e8050a9de1e5e11a27f01e962a5..833bb9bfe9329ea210d00f5582de0b48b20680b8 100644 (file)
@@ -2947,7 +2947,7 @@ int speed_main(int argc, char **argv)
 
             if (rsa_count <= 1) {
                 /* if longer than 10s, don't do any more */
-                for (testnum++; testnum < EC_NUM; testnum++)
+                for (testnum++; testnum < ECDSA_NUM; testnum++)
                     ecdsa_doit[testnum] = 0;
             }
         }