Skip to content
Commit 3445872e authored by 捷成吴's avatar 捷成吴 Committed by Dr. Matthias St. Pierre
Browse files

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: default avatarRich Salz <rsalz@openssl.org>
Reviewed-by: default avatarMatthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/6582)
parent dc6c374b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment