speed.c: fix segfault with unrecognized algorithms
authorCristian Stoica <cristian.stoica@nxp.com>
Tue, 17 May 2016 15:40:14 +0000 (18:40 +0300)
committerRich Salz <rsalz@openssl.org>
Tue, 31 May 2016 14:14:45 +0000 (10:14 -0400)
commitdab1f5fe4be0ca49b3aa382f0bfdcbf8c8855903
tree77f6662e347286119bf06a41389ff3c3c63df94b
parentf72f00d49549c6620d7101f5e9bf7963da6df9ee
speed.c: fix segfault with unrecognized algorithms

When an unrecognized algorithm is given on command line together with
-async_jobs, speed_main will jump to clean-up and run
ASYNC_cleanup_thread without calling ASYNC_init_thread first.

Example:
openssl speed -async_jobs 4 ras2048

Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1084)
apps/speed.c