apps/speed.c: add missing checks for RAND_bytes()
author捷成吴 <jasonwood2031@gmail.com>
Sun, 24 Jun 2018 07:28:33 +0000 (15:28 +0800)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Sun, 24 Jun 2018 18:26:37 +0000 (20:26 +0200)
commit3445872e22735ff864d6b363d2d2b8acde740912
treea0662cf2f6e51b54cc06632547247187e5e3d6be
parentdc6c374bdb4872f6d5d727e73a2ed834e972842c
apps/speed.c: add missing checks for RAND_bytes()

Function RAND_bytes() may return 0 or -1 on error, simply
goto end label when it fails.

Fixes #6567

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/6582)
apps/speed.c